diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 3c4430a32e..a9b03ba0a7 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -117,31 +117,21 @@ jobs: steps: - uses: actions/checkout@v4 + - run: pipx install poetry + - run: pipx install coverage - uses: actions/setup-python@v5 + id: setup-python with: - python-version: | - 3.8 - 3.9 - 3.10 - 3.11 - 3.12 + python-version: "3.12" + cache: "poetry" - - name: Pip and nox cache - id: cache - uses: actions/cache@v4 - with: - path: | - ~/.cache - ~/.nox - .nox - key: - ${{ runner.os }}-nox-lint-${{ env.pythonLocation }}-${{ - hashFiles('**/poetry.lock') }}-${{ hashFiles('**/noxfile.py') }} - restore-keys: | - ${{ runner.os }}-nox-lint-${{ env.pythonLocation }} + - run: poetry install --with integrations + if: steps.setup-python.outputs.cache-hit != 'true' - - run: pip install poetry nox nox-poetry uv - - run: nox -r -t lint + - run: | + poetry run pip install mypy + + mypy --config-file mypy.ini unit-tests-on-windows: name: 🪟 Tests on Windows diff --git a/noxfile.py b/noxfile.py index fd3f65b271..3cb528a3af 100644 --- a/noxfile.py +++ b/noxfile.py @@ -180,11 +180,3 @@ def tests_cli(session: Session) -> None: "tests/cli", "-vv", ) - - -@session(name="Mypy", tags=["lint"]) -def mypy(session: Session) -> None: - session.run_always("poetry", "install", "--with", "integrations", external=True) - session.install("mypy") - - session.run("mypy", "--config-file", "mypy.ini")