From 3fa66f028948666e5c86646b5b58f7858a65eacd Mon Sep 17 00:00:00 2001 From: Adrian Rumpold Date: Wed, 28 Jul 2021 08:15:32 +0200 Subject: [PATCH] fix(CI): Move cache action before poetry install --- .github/workflows/python-app.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 18b3aaf..fd1ad90 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -20,16 +20,6 @@ jobs: uses: actions/setup-python@v2 with: 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 uses: actions/cache@v2.1.6 with: @@ -40,6 +30,16 @@ jobs: restore-keys: | venv-cache-${{hashFiles('**/poetry.lock')}} 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 run: | # stop the build if there are Python syntax errors or undefined names