update caching logic + add names

This commit is contained in:
vbarda
2024-06-18 09:38:23 -04:00
parent 633b444e01
commit 955def0408
2 changed files with 8 additions and 8 deletions
+7 -7
View File
@@ -29,6 +29,7 @@ jobs:
python-version:
- "3.9"
- "3.11"
name: "lint #${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v4
@@ -67,10 +68,9 @@ jobs:
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2"
with:
working-directory: ${{ inputs.working-directory }}
path: |
./.mypy_cache
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ hashFiles('./poetry.lock') }}
${{ inputs.working-directory }}/.mypy_cache
key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }}
- name: Analysing package code with our lint
working-directory: ${{ inputs.working-directory }}
@@ -78,7 +78,7 @@ jobs:
if make lint_package > /dev/null 2>&1; then
make lint_package
else
echo "lint_package command not found, skipping step"
echo "lint_package command not found, using lint instead"
make lint
fi
@@ -100,9 +100,9 @@ jobs:
env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2"
with:
working-directory: ${{ inputs.working-directory }}
path: ./.mypy_cache_test
key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ hashFiles('./poetry.lock') }}
path: |
${{ inputs.working-directory }}/.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: Analysing tests with our lint
working-directory: ${{ inputs.working-directory }}
+1 -1
View File
@@ -21,7 +21,7 @@ jobs:
- "3.10"
- "3.11"
- "3.12"
name: Python ${{ matrix.python-version }}
name: "test #${{ matrix.python-version }}"
steps:
- uses: actions/checkout@v4