From 462d7082d2de05cba1b20c3fb11e36124a379308 Mon Sep 17 00:00:00 2001 From: EtienneCmb Date: Mon, 6 Nov 2023 15:35:02 +0100 Subject: [PATCH] Fix codecov command location + pytest cov --- .github/workflows/test_doc.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/test_doc.yml b/.github/workflows/test_doc.yml index 371166b9..c6067373 100644 --- a/.github/workflows/test_doc.yml +++ b/.github/workflows/test_doc.yml @@ -28,7 +28,11 @@ jobs: - name: Test with pytest 🔧 run: | - pytest -v + pytest -v --cov + + - name: Run codecov 🔧 + run: | + codecov deploy: needs: test @@ -47,15 +51,6 @@ jobs: python -m pip install --upgrade pip pip install -e .['doc'] - - name: Run codecov 🔧 - run: | - codecov - - - name: Upload coverage reports to Codecov 🚀 - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} - - name: Build the Doc 🔧 run: | cd docs @@ -69,4 +64,9 @@ jobs: branch: gh-pages folder: docs/_build/html/ clean: true - ssh-key: ${{ secrets.DEPLOY_KEY }} \ No newline at end of file + ssh-key: ${{ secrets.DEPLOY_KEY }} + + - name: Upload coverage reports to Codecov 🚀 + uses: codecov/codecov-action@v3 + env: + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file