From edf1d52e4bfb59ebd61ea0e8075535402f79d1cb Mon Sep 17 00:00:00 2001 From: George Panchuk Date: Wed, 1 May 2024 23:00:31 +0200 Subject: [PATCH] new: disable windows and macos tests on gpu and its child branches --- .github/workflows/python-tests.yml | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/.github/workflows/python-tests.yml b/.github/workflows/python-tests.yml index 9d517b1..c15f661 100644 --- a/.github/workflows/python-tests.yml +++ b/.github/workflows/python-tests.yml @@ -2,7 +2,7 @@ name: Tests on: push: - branches: [ master, main ] + branches: [ main ] schedule: - cron: 0 0 * * * pull_request: @@ -21,10 +21,20 @@ jobs: - '3.10.x' - '3.11.x' - '3.12.x' - os: - - ubuntu-latest - - macos-latest - - windows-latest + os: [ ubuntu-latest ] + include: + - os: macos-latest + python-version: [ '3.8.x', '3.9.x', '3.10.x', '3.11.x', '3.12.x' ] + if: >- + ${{ !contains(github.ref, 'refs/heads/gpu') && + github.event_name != 'pull_request' || + github.event.pull_request.base.ref != 'gpu' }} + - os: windows-latest + python-version: [ '3.8.x', '3.9.x', '3.10.x', '3.11.x', '3.12.x' ] + if: >- + ${{ !contains(github.ref, 'refs/heads/gpu') && + github.event_name != 'pull_request' || + github.event.pull_request.base.ref != 'gpu' }} runs-on: ${{ matrix.os }}