First commit of adding tox #2
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: tox_check | |
| on: | |
| push: | |
| branches: ["master"] | |
| pull_request: | |
| branches: ["master"] | |
| jobs: | |
| test: | |
| name: tox test with ${{ matrix.env }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| env: | |
| - "3.13" | |
| - "3.12" | |
| - "3.11" | |
| - "3.10" | |
| os: | |
| - ubuntu-latest | |
| - macos-latest | |
| - windows-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.env }} | |
| - name: Run image | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: "main" | |
| # - name: Install tox | |
| # run: poetry add --group=dev tox | |
| - name: Select Python version | |
| run: poetry env use ${{ matrix.env }} | |
| - name: Run test suite | |
| run: tox run | |
| env: | |
| TOX_GH_MAJOR_MINOR: ${{ matrix.env }} |