mirror of
https://github.com/long2ice/fastapi-cache.git
synced 2026-03-25 04:57:54 +00:00
Merge pull request #150 from long2ice/cache_mypy_cache
CI: cache the mypy cache for faster runs
This commit is contained in:
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user