fix(CI): Move cache action before poetry install

This commit is contained in:
Adrian Rumpold
2021-07-28 08:15:32 +02:00
committed by GitHub
parent 79ec497614
commit 3fa66f0289

View File

@@ -20,16 +20,6 @@ jobs:
uses: actions/setup-python@v2 uses: actions/setup-python@v2
with: with:
python-version: 3.9 python-version: 3.9
- name: Python Poetry Action
# You may pin to the exact commit or the version.
# uses: abatilo/actions-poetry@8284d202bc272a8d0597e26e1c0b4a0d0c73db93
uses: abatilo/actions-poetry@v2.1.0
with:
# The version of poetry to install
poetry-version: 1.1.7
- name: Install dependencies
run: |
poetry install
- name: Cache - name: Cache
uses: actions/cache@v2.1.6 uses: actions/cache@v2.1.6
with: with:
@@ -40,6 +30,16 @@ jobs:
restore-keys: | restore-keys: |
venv-cache-${{hashFiles('**/poetry.lock')}} venv-cache-${{hashFiles('**/poetry.lock')}}
venv-cache- venv-cache-
- name: Python Poetry Action
# You may pin to the exact commit or the version.
# uses: abatilo/actions-poetry@8284d202bc272a8d0597e26e1c0b4a0d0c73db93
uses: abatilo/actions-poetry@v2.1.0
with:
# The version of poetry to install
poetry-version: 1.1.7
- name: Install dependencies
run: |
poetry install
- name: Lint with flake8 - name: Lint with flake8
run: | run: |
# stop the build if there are Python syntax errors or undefined names # stop the build if there are Python syntax errors or undefined names