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: