| 1 | name: Test |
| 2 | |
| 3 | on: |
| 4 | push: |
| 5 | branches: |
| 6 | - main |
| 7 | pull_request: |
| 8 | branches: |
| 9 | - main |
| 10 | |
| 11 | jobs: |
| 12 | test: |
| 13 | runs-on: ubuntu-latest |
| 14 | strategy: |
| 15 | matrix: |
| 16 | python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] |
| 17 | steps: |
| 18 | - uses: actions/checkout@v4 |
| 19 | - name: Install poetry |
| 20 | run: pipx install poetry |
| 21 | - uses: actions/setup-python@v5 |
| 22 | with: |
| 23 | python-version: ${{ matrix.python-version }} |
| 24 | cache: poetry |
| 25 | - run: poetry install |
| 26 | - run: poetry run pytest |