Skip to content

Merge pull request #188 from phobson/add-group-comparisons #52

Merge pull request #188 from phobson/add-group-comparisons

Merge pull request #188 from phobson/add-group-comparisons #52

name: Run coverage via codecov
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: Check Code Coverage
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Generate coverage report
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements_dev.txt ]; then pip install -r requirements_dev.txt; fi
coverage run --source wqio check_wqio.py --doctest-modules --cov --cov-report=xml
- name: Upload coverage reports to Codecov
run: |
# Replace `linux` below with the appropriate OS
# Options are `alpine`, `linux`, `macos`, `windows`
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${{ secrets.CODECOV_TOKEN }}