diff --git a/.github/workflows/checks-and-tests.yml b/.github/workflows/checks-and-tests.yml index 1d7c848..757faf3 100644 --- a/.github/workflows/checks-and-tests.yml +++ b/.github/workflows/checks-and-tests.yml @@ -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 .