new: disable windows and macos tests on gpu and its child branches

This commit is contained in:
George Panchuk
2024-05-01 23:00:31 +02:00
parent 432da42c11
commit edf1d52e4b

View File

@@ -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 }}