Skip to content

Commit

Permalink
fix(ci): caching
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasKs committed Jun 8, 2022
1 parent 92b3e30 commit b50f158
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 294 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: 3.9
python-version: "3.10"
- name: Install poetry
uses: snok/install-poetry@v1
with:
Expand All @@ -24,7 +24,7 @@ jobs:
uses: actions/cache@v3.0.3
with:
path: .venv
key: venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-3
key: venv-${{ runner.os }}-3.10-${{ hashFiles('**/poetry.lock') }}-0
- name: Install dependencies
run: poetry install
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/testing.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
path: |
~/.cache/pip
~/.cache/pre-commit
key: ${{ runner.os }}-pip-2
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-pip-
${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-
- run: python -m pip install pre-commit
- run: pre-commit run --all-files
test:
Expand Down Expand Up @@ -46,7 +46,7 @@ jobs:
id: cache-venv
with:
path: .venv
key: ${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-2
key: ${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-0
- name: Install dependencies
run: poetry install --no-interaction --no-root
if: steps.cache-venv.outputs.cache-hit != 'true'
Expand Down
Loading

0 comments on commit b50f158

Please sign in to comment.