Drop support for python 3.8. #30
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: Test and Build | |
| # Run the code checks and CI pytest workflow on | |
| # - push to `main` or `dev` branches, or | |
| # - manually triggered from github Actions tab. | |
| # Build and publish to test.pypi on | |
| # - push to `main` branch. | |
| on: | |
| push: | |
| branches: [main, dev] | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| name: CI tests | |
| uses: glenn20/python-ci/.github/workflows/check-test-build.yaml@v1 | |
| with: # A short test matrix for fast testing of commits | |
| os: '["ubuntu-latest"]' | |
| python-version: '["3.9", "3.13"]' | |
| publish-test: | |
| name: Publish to test.pypi | |
| needs: tests | |
| if: | | |
| github.event_name == 'workflow_dispatch' || | |
| (github.event_name == 'push' && github.ref == 'refs/heads/main') | |
| uses: ./.github/workflows/publish.yaml | |
| with: | |
| pypi: test.pypi | |
| permissions: | |
| id-token: write # IMPORTANT: mandatory for trusted publishing! |