Skip to content

Commit

Permalink
Reduce test space
Browse files Browse the repository at this point in the history
  • Loading branch information
EnricoMi committed Feb 23, 2024
1 parent a97d0b1 commit 5a87324
Showing 1 changed file with 5 additions and 30 deletions.
35 changes: 5 additions & 30 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,17 @@ jobs:
.github/upgrade-pip-packages.sh
shell: bash

test-mac:
name: "Test macOS"
uses: "./.github/workflows/test-os.yml"
with:
os: '["macos-11", "macos-12", "macos-13", "macos-14"]'
python-version: '["3.10", "3.11", "3.12", "installed"]'
include: >
[
{"os": "macos-11", "python-version": "3.7"},
{"os": "macos-11", "python-version": "3.8"},
{"os": "macos-11", "python-version": "3.9"},
{"os": "macos-12", "python-version": "3.8"},
{"os": "macos-12", "python-version": "3.9"},
{"os": "macos-13", "python-version": "3.8"},
{"os": "macos-13", "python-version": "3.9"},
]
test-lnx:
name: "Test Ubuntu"
uses: "./.github/workflows/test-os.yml"
with:
os: '["ubuntu-20.04", "ubuntu-22.04"]'
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "installed"]'
include: '[{"os": "ubuntu-20.04", "python-version": "3.7"}]'

test-win:
name: "Test Windows"
uses: "./.github/workflows/test-os.yml"
with:
os: '["windows-2019", "windows-2022"]'
python-version: '["3.8", "3.9", "3.10", "3.11", "3.12", "installed"]'
include: '[{"os": "windows-2019", "python-version": "3.7"}]'
os: '["ubuntu-20.04"]'
python-version: '["3.8"]'
include: '[]'

publish:
name: "Publish"
needs: [test-mac, test-lnx, test-win]
needs: [test-lnx]
# we run the action from this branch whenever we can (when it runs in our repo's context)
if: >
! cancelled() &&
Expand All @@ -79,7 +54,7 @@ jobs:

config-deploy:
name: Configure Deployment
needs: [test-mac, test-lnx, test-win]
needs: [test-lnx]
# do not build or deploy on forked repositories
if: github.repository_owner == 'EnricoMi'
runs-on: ubuntu-latest
Expand Down

0 comments on commit 5a87324

Please sign in to comment.