16 fix failing actions #76
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python package | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
first_build: | |
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}; first build) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: ['ubuntu-latest'] # In first build we only test 1 os | |
python-version: ['3.11'] # In first build we only test 1 python version | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-test-and-build | |
with: | |
python-version: ${{ matrix.python-version }} | |
other_builds: | |
name: Build for (${{ matrix.python-version }}, ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
needs: first_build | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ 'ubuntu-latest', 'macos-latest', 'windows-latest' ] | |
python-version: [ '3.9', '3.11' ] # Only first and last supported versions | |
exclude: | |
# already tested in first_build job | |
- python-version: 3.11 | |
os: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ./.github/actions/install-test-and-build | |
with: | |
python-version: ${{ matrix.python-version }} |