From 518a70884c20f7850cde2ec3a3a1e317f71d1c80 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Francisco=20Calvo?= Date: Tue, 23 Jan 2024 12:11:47 +0100 Subject: [PATCH] chore: move dependencies install to a different step --- .github/workflows/run-python-tests.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/run-python-tests.yml b/.github/workflows/run-python-tests.yml index 58c1da16..4c6266ae 100644 --- a/.github/workflows/run-python-tests.yml +++ b/.github/workflows/run-python-tests.yml @@ -50,11 +50,6 @@ jobs: steps: - name: Checkout Code 🛎 uses: actions/checkout@v3 - - name: Setup PDM - uses: pdm-project/setup-pdm@v3 - with: - python-version: 3.10.13 - cache: true - name: Set huggingface hub credentials if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop' || startsWith(github.ref, 'refs/heads/releases') run: | @@ -70,12 +65,17 @@ jobs: run: | echo "ARGILLA_SEARCH_ENGINE=opensearch" >> "$GITHUB_ENV" echo "Configure opensearch engine" + - name: Setup PDM + uses: pdm-project/setup-pdm@v3 + with: + python-version: 3.10.13 + cache: true + - name: Install dependencies + run: pdm install - name: Run tests 📈 env: ARGILLA_ENABLE_TELEMETRY: 0 - run: | - pmd install - pdm run pytest --cov=argilla --cov-report=xml:${{ env.COVERAGE_REPORT }}.xml ${{ inputs.pytestArgs }} -vs + run: pdm run pytest --cov=argilla --cov-report=xml:${{ env.COVERAGE_REPORT }}.xml ${{ inputs.pytestArgs }} -vs - name: Upload coverage report artifact uses: actions/upload-artifact@v3 with: