Skip to content

Commit

Permalink
Pytest: Add codecov upload (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Feb 17, 2024
1 parent e6d2a8c commit 118546d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r .github/workflows/python_requirements.txt
pip install -r .github/workflows/optional_requirements.txt
pip install pytest pytest-timeout pytest-github-actions-annotate-failures pytest-xdist
pip install pytest pytest-timeout pytest-github-actions-annotate-failures pytest-xdist pytest-cov
- name: Create installation directory
run: |
Expand All @@ -75,11 +75,16 @@ jobs:
run: |
export PYTHONPATH=`grass --config python_path`:$PYTHONPATH
export LD_LIBRARY_PATH=$HOME/install/grass84/lib:$LD_LIBRARY_PATH
pytest --numprocesses auto .
pytest --cov --numprocesses auto .
- name: Print installed versions
if: always()
run: .github/workflows/print_versions.sh

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
pytest-success:
name: pytest Result
needs:
Expand Down

0 comments on commit 118546d

Please sign in to comment.