Skip to content

Commit

Permalink
Merge pull request #450 from MatthieuDartiailh/codecov-update
Browse files Browse the repository at this point in the history
Use codecov action version 2
  • Loading branch information
MatthieuDartiailh committed Aug 24, 2021
2 parents 6864e8b + 8f3e00d commit 81d523a
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10.0-beta.4']
python-version: ['3.7', '3.8', '3.9', '3.10.0-rc.1']
qt-binding: [pyqt5, pyside2]
fail-fast: false
steps:
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:
pip install https://github.com/nucleic/atom/tarball/main
pip install https://github.com/nucleic/kiwi/tarball/main
- name: Install Qt bindings
if: matrix.python-version != '3.10.0-beta.4'
if: matrix.python-version != '3.10.0-rc.1'
run: |
pip install numpy qtpy '${{matrix.qt-binding}}'
- name: Install extra dependencies
Expand All @@ -70,7 +70,7 @@ jobs:
run: |
pip install pytest pytest-cov
- name: Install pytest-qt
if: matrix.python-version != '3.10.0-beta.4'
if: matrix.python-version != '3.10.0-rc.1'
run: |
pip install pytest-qt
- name: Run tests (Windows, Mac)
Expand All @@ -86,10 +86,13 @@ jobs:
exec /usr/bin/startfluxbox &
sleep 1
python -X dev -m pytest tests --cov enaml --cov-report xml
- name: Generate C++ coverage reports
if: (github.event_name != 'schedule' && matrix.os != 'windows-latest')
run: |
bash -c "find . -type f -name '*.gcno' -exec gcov -pb --all-blocks {} +" || true
# Windows does not have C coverage so the upload is a bit different
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
if: (github.event_name != 'schedule' && matrix.os == 'windows-latest')
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand All @@ -98,7 +101,7 @@ jobs:
name: codecov-umbrella
fail_ci_if_error: true
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v2
if: (github.event_name != 'schedule' && matrix.os != 'windows-latest')
with:
token: ${{ secrets.CODECOV_TOKEN }}
Expand Down

0 comments on commit 81d523a

Please sign in to comment.