Merge pull request #150 from long2ice/cache_mypy_cache

CI: cache the mypy cache for faster runs
This commit is contained in:
Martijn Pieters
2023-05-15 17:49:38 +01:00
committed by GitHub

View File

@@ -16,10 +16,19 @@ jobs:
- name: Install Poetry - name: Install Poetry
run: pipx install poetry run: pipx install poetry
- name: Setup Python - name: Setup Python
id: setup-python
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.x' python-version: '3.x'
cache: poetry cache: poetry
- name: Cache mypy cache
uses: actions/cache@v3
with:
path: .mypy_cache
key: ${{ runner.os }}-mypy-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
${{ runner.os }}-mypy-${{ steps.setup-python.outputs.python-version }}-
${{ runner.os }}-mypy-
- name: Install linting requirements - name: Install linting requirements
run: poetry install --no-root --with=linting --all-extras run: poetry install --no-root --with=linting --all-extras
- name: Execute linters - name: Execute linters