Skip to content

Commit

Permalink
Merge pull request #179 from MindSetLib/dev
Browse files Browse the repository at this point in the history
Maintenance: Adding codecov in CI
  • Loading branch information
alexmindset authored Jul 28, 2022
2 parents 3c4ad04 + 7b049d1 commit 09f2b2d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/insolver-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
shell: bash
run: |
python -m pip install --upgrade pip setuptools wheel
pip install wheel flake8 pytest black[jupyter]
pip install wheel flake8 pytest pytest-cov black[jupyter]
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with black
shell: bash
Expand All @@ -48,4 +48,13 @@ jobs:
- name: Test with pytest
shell: bash
run: |
python -m pytest
python -m pytest --cov=./ --cov-report=xml
- name: Code coverage with codecov on ubuntu-latest and Python 3.8
if: |
(matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8')
uses: codecov/codecov-action@v3
with:
flags: unittests
name: codecov-insolver
fail_ci_if_error: false
files: ./coverage.xml

0 comments on commit 09f2b2d

Please sign in to comment.