Skip to content

Commit

Permalink
CI: update codecov usage
Browse files Browse the repository at this point in the history
  • Loading branch information
akrherz committed Mar 3, 2023
1 parent c93c2ee commit 3e034c2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
. .ci_tooling/postgres.sh
. .ci_tooling/miniconda.sh
. .ci_tooling/memcached.sh
pip install codecov requests-mock
pip install coverage requests-mock
python -m pip install . --upgrade
export PATH="/usr/lib/postgresql/14/bin:$PATH"
cd database; sh bootstrap.sh
Expand All @@ -34,16 +34,20 @@ jobs:
psql -f data/postgis/cwsu.db -U mesonet postgis
cd ..
python util/insert_testing_data.py
coverage run --source=pyiem setup.py test --addopts "--mpl --mpl-results-path=mplresults"
if [[ ${{ matrix.PYTHON_VERSION }} == '3.8' ]]; then
codecov
fi
pytest --mpl --cov=./ --cov-report xml
conda install sphinx
cd docs
make html
touch build/html/.nojekyll
cd ..
- name: Code coverage
if: ${{ matrix.PYTHON_VERSION == '3.8' }}
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.xml

- name: Build and Deploy
if: ${{ matrix.PYTHON_VERSION == '3.8' }}
uses: JamesIves/github-pages-deploy-action@releases/v3
Expand Down

0 comments on commit 3e034c2

Please sign in to comment.