Skip to content

Commit

Permalink
Remove cache from lint
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Dec 20, 2024
1 parent a2e8eb7 commit f3cde26
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
32 changes: 11 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit f3cde26

Please sign in to comment.