Merge pull request #463 from freemansw1/v160_merge_main #882
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Codecov CI | |
on: [push, pull_request] | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
env: | |
OS: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
# Similar to MetPy install-conda action | |
- name: Set up conda | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-ci.yml | |
generate-run-shell: true | |
cache-environment: true | |
cache-downloads: true | |
- name: Generate report | |
shell: micromamba-shell {0} | |
run: | |
python -m coverage run -m pytest --cov=./ --cov-report=xml | |
- name: Upload Coverage to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
fail_ci_if_error: true | |
flags: unittests |