CI: Convert tox config to pyproject.toml, update tox envs #66
Workflow file for this run
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
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| name: Run Tox tests | |
| jobs: | |
| tox_test: | |
| name: Tox test | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run Tox tests | |
| id: test | |
| uses: fedora-python/tox-github-action@main | |
| with: | |
| tox_env: ${{ matrix.tox_env }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| tox_env: [py39, py310, py311, py312, py313, pypy3] | |
| # Use GitHub's Linux Docker host | |
| runs-on: ubuntu-latest | |
| lints: | |
| name: Lints | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Run ruff format | |
| run: | | |
| if ! tox -e ruff-format ; then | |
| echo "Please run 'ruff format' on the above files or apply the diffs manually" | |
| fi | |
| - name: Run ruff check | |
| run: | | |
| tox -e ruff-check | |
| - name: Type Checking (mypy) | |
| run: | | |
| tox -e py3-mypy,py39-mypy | |
| runs-on: ubuntu-latest |