@@ -34,13 +34,19 @@ jobs:
3434 steps :
3535 - uses : actions/checkout@v4
3636
37+ - name : Check disk space
38+ run : df -h
39+
3740 - name : Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }}
3841 uses : " ./.github/actions/poetry_setup"
3942 with :
4043 python-version : ${{ matrix.python-version }}
4144 poetry-version : ${{ env.POETRY_VERSION }}
4245 working-directory : ${{ inputs.working-directory }}
4346 cache-key : lint-with-extras
47+
48+ - name : Check disk space
49+ run : df -h
4450
4551 - name : Check Poetry File
4652 shell : bash
5258 shell : bash
5359 working-directory : ${{ inputs.working-directory }}
5460 run : |
55- poetry lock --check
61+ poetry check --lock
5662
5763 - name : Install dependencies
5864 # Also installs dev/lint/test/typing dependencies, to ensure we have
6773 run : |
6874 poetry install --with lint,typing
6975
76+ - name : Check disk space
77+ run : df -h
78+
7079 - name : Get .mypy_cache to speed up mypy
7180 uses : actions/cache@v4
7281 env :
@@ -75,13 +84,14 @@ jobs:
7584 path : |
7685 ${{ env.WORKDIR }}/.mypy_cache
7786 key : mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
78-
87+ restore-keys : mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-
7988
8089 - name : Analysing the code with our lint
8190 working-directory : ${{ inputs.working-directory }}
8291 run : |
8392 make lint_package
8493
94+
8595 - name : Install unit+integration test dependencies
8696 working-directory : ${{ inputs.working-directory }}
8797 run : |
@@ -95,6 +105,13 @@ jobs:
95105 path : |
96106 ${{ env.WORKDIR }}/.mypy_cache_test
97107 key : mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
108+
109+ - name : Clean up temporary files
110+ run : |
111+ rm -rf ${{ env.WORKDIR }}/.mypy_cache
112+ rm -rf ${{ env.WORKDIR }}/.mypy_cache_test
113+ rm -rf ${{ env.WORKDIR }}/.ruff_cache
114+ poetry cache clear pypi --all
98115
99116 - name : Analysing the code with our lint
100117 working-directory : ${{ inputs.working-directory }}
0 commit comments