Skip to content

Commit

Permalink
Merge pull request #277 from betagouv/ci/mypy-cache
Browse files Browse the repository at this point in the history
ci: add cache for mypy
  • Loading branch information
wiwski authored Dec 6, 2023
2 parents 854fe73 + e4ed025 commit eb11f07
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/checks-and-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,21 @@ jobs:
run: python -m black --check .
- name: Ruff check
run: python -m ruff check .

- name: Restore mypy cache
id: cache-mypy-restore
uses: actions/cache/restore@v3
with:
path: .mypy_cache
key: ${{ runner.os }}-mypy
- name: Mypy check
run: python -m mypy .
- name: Save mypy cache
id: cache-mypy-save
uses: actions/cache/save@v3
with:
path: .mypy_cache
key: ${{ steps.cache-mypy-restore.outputs.cache-primary-key }}

- name: Pytest
run: python -m pytest .

0 comments on commit eb11f07

Please sign in to comment.