fix(CI): Move cache action before poetry install
This commit is contained in:
20
.github/workflows/python-app.yml
vendored
20
.github/workflows/python-app.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user