diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 9069a38c..06ad1562 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -13,6 +13,9 @@ on: jobs: codecov: runs-on: ubuntu-latest + defaults: + run: + working-directory: ${{github.workspace}} steps: - name: Checkout uses: actions/checkout@v4 @@ -26,16 +29,15 @@ jobs: - name: Install dependencies run: | pip install --upgrade pip - pip install . pip install pytest pip install pytest-cov - python -m pip install --upgrade pip + pip install -e . - name: Generate coverage report run: | - pytest --cov --cov-branch --cov-report=xml - + pytest --cov=./ --cov-report=xml:coverage.xml - name: Upload coverage to Codecov + uses: codecov/codecov-action@v5 with: token: ${{ secrets.CODECOV_TOKEN }}