Merge pull request #83 from kayjan/kayjan-patch-1 #231
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: Code Coverage | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Add conda to system path | |
run: | | |
# $CONDA is an environment variable pointing to the root of the miniconda directory | |
echo $CONDA/bin >> $GITHUB_PATH | |
- name: Install dependencies | |
run: | | |
python -m pip install pandas | |
python -m pip install pydot | |
python -m pip install Pillow | |
- name: Generate coverage report | |
run: | | |
python -m pip install pytest | |
python -m pip install pytest-cov | |
pytest --cov=./ --cov-report=xml | |
- name: Upload coverage to Codecov | |
if: ${{ github.event_name == 'push' }} | |
uses: codecov/codecov-action@v3 | |
with: | |
fail_ci_if_error: true # optional (default = false) | |
name: codecov-umbrella | |
verbose: true # optional (default = false) |