Edit test file to avoid naming conflicts #59
Workflow file for this run
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: Measure code coverage | |
on: | |
push: | |
paths: | |
- 'tests/**' | |
pull_request: | |
branches: | |
- 'main' | |
paths: | |
- 'tests/**' | |
jobs: | |
code-coverage: | |
name: Code Coverage | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
sudo apt -qq update | |
sudo apt -qq install -y graphviz | |
pip3 install -r requirements.txt | |
pip3 install coverage --upgrade | |
- name: Run Coverage.py | |
run: | | |
coverage run --omit=tests/*,pfdl_scheduler/parser/PFDL* -m unittest discover -s tests/unit_test | |
coverage report | |
coverage json | |
coverage html |