ci(github): properly pass python versions to setup step #229
This file contains hidden or 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: Build | |
| on: | |
| pull_request: # to master | |
| schedule: | |
| - cron: "0 0 * * 0" | |
| push: | |
| branches: | |
| - "ci/**" # CI debugging | |
| - "v*" # version branches | |
| - "master" | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ./.github/actions/setup | |
| with: | |
| python: 3.12 | |
| - name: Lint | |
| id: lint | |
| run: tox -e lint | |
| continue-on-error: true | |
| - name: Emit warning if lint failed | |
| if: ${{ steps.lint.outcome != 'success' }} | |
| run: echo "::warning::Lint step failed, check logs" | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ ubuntu-latest ] | |
| python: | |
| - "3.12" | |
| - "3.11" | |
| - "3.10" | |
| - "3.9.14" | |
| - "3.8" | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: ./.github/actions/setup | |
| with: | |
| python: ${{ matrix.python }} | |
| - name: Test | |
| run: tox |