diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4f08479..cf7d897 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -9,23 +9,18 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.12"] + python-version: ["3.12", "3.13"] steps: - uses: actions/checkout@v4 - - run: pipx install poetry==1.7.1 - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: poetry - - name: Install dependencies - run: poetry install --with=dev - - name: Lint code - if: ${{ matrix.python-version == 3.12 }} + - name: Install run: | - python -m pip install pre-commit - pre-commit run --all-files - - name: Type-check code - if: ${{ matrix.python-version == 3.12 }} - run: poetry run mypy src - - name: Run tests - run: poetry run nox + python -m pip install poetry==1.7.1 + poetry install --with=dev + - name: Lint + run: | + poetry run pre-commit run --all-files + - name: Test + run: poetry run pytest