Skip to content

Commit

Permalink
Ianhelle/mypy cache 2023 01 17 (#608)
Browse files Browse the repository at this point in the history
* Adding mypy caching action to GH CI workflow

* Updated caching to use native github actions cache with incremental key matching
  • Loading branch information
ianhelle committed Jan 17, 2023
1 parent f31b643 commit 867104e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,17 @@ jobs:
run: |
pylint msticpy --disable=duplicate-code --disable=E1135,E1101,E1133
if: ${{ always() }}
- name: Cache/restore MyPy data
id: cache-mypy
uses: actions/cache@v3
with:
# MyPy cache files are stored in `~/.mypy_cache`
path: .mypy_cache
key: ${{ runner.os }}-build-mypy-${{ github.ref }}-${{ github.sha }}
restore-keys: |
${{ runner.os }}-build-mypy-${{ github.ref }}-${{ github.sha }}
${{ runner.os }}-build-mypy-${{ github.ref }}
${{ runner.os }}-build-mypy
- name: mypy
run: |
mypy --ignore-missing-imports --follow-imports=silent --show-column-numbers --junit-xml junit/mypy-test-${{ matrix.python-version }}-results.xml msticpy
Expand Down

0 comments on commit 867104e

Please sign in to comment.