Skip to content

Commit

Permalink
Add Codecov CLI installation and coverage report upload to CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
msbc committed Dec 1, 2024
1 parent 0ecc6b0 commit 68f8d9e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Tox CI with Conda
# run locally with: act --container-architecture linux/amd64

on:
push:
Expand Down Expand Up @@ -64,7 +65,7 @@ jobs:
conda init
source ~/.bashrc
conda activate test-env
pip install tox tox-conda
pip install tox tox-conda codecov codecov-cli
- name: Install GCC and GFortran
run: |
Expand All @@ -81,6 +82,7 @@ jobs:
source ~/.bashrc
conda activate test-env
tox -e py$(echo ${{ matrix.python-version }} | tr -d . | cut -c 1-3)
codecov -t ${{ secrets.CODECOV_TOKEN }} -F unittests -n 'unittests'-${{ matrix.python-version }}-${{ github.run_id }}
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
Expand Down

0 comments on commit 68f8d9e

Please sign in to comment.