Skip to content

Commit

Permalink
modify workflow caching
Browse files Browse the repository at this point in the history
  • Loading branch information
Coniferish committed Nov 19, 2024
1 parent fadc814 commit 03f3a3d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/_lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,26 @@ jobs:
path: |
${{ env.WORKDIR }}/.mypy_cache
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
restore-keys: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-

- name: Clear Poetry Cache
run: |
poetry cache clear pypi --all
- name: Clean up temporary files
run: |
rm -rf ${{ env.WORKDIR }}/.mypy_cache
rm -rf ${{ env.WORKDIR }}/.mypy_cache_test
poetry cache clear pypi --all
rm -rf ${{ env.WORKDIR }}/build
rm -rf ${{ env.WORKDIR }}/dist
- name: Analysing the code with our lint
working-directory: ${{ inputs.working-directory }}
run: |
make lint_package
- name: Install unit+integration test dependencies
working-directory: ${{ inputs.working-directory }}
run: |
Expand All @@ -96,6 +109,18 @@ jobs:
${{ env.WORKDIR }}/.mypy_cache_test
key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}

- name: Clear Poetry Cache
run: |
poetry cache clear pypi --all
- name: Clean up temporary files
run: |
rm -rf ${{ env.WORKDIR }}/.mypy_cache
rm -rf ${{ env.WORKDIR }}/.mypy_cache_test
poetry cache clear pypi --all
rm -rf ${{ env.WORKDIR }}/build
rm -rf ${{ env.WORKDIR }}/dist
- name: Analysing the code with our lint
working-directory: ${{ inputs.working-directory }}
run: |
Expand Down

0 comments on commit 03f3a3d

Please sign in to comment.