Skip to content

Commit

Permalink
Windows: Use Codecov's GitHub action
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk committed Nov 20, 2019
1 parent 97e4964 commit cb038f0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/test-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,9 @@ jobs:
python-version: ${{ matrix.python-version }}
architecture: ${{ matrix.architecture }}

- name: pip install wheel pytest pytest-cov codecov
- name: pip install wheel pytest pytest-cov
run: |
"%pythonLocation%\python.exe" -m pip install wheel pytest pytest-cov
pip install codecov
shell: cmd

- name: Fetch dependencies
Expand Down Expand Up @@ -357,8 +356,14 @@ jobs:
path: Tests/errors

- name: Upload coverage
run: 'codecov --file "%GITHUB_WORKSPACE%\coverage.xml" --name "%pythonLocation%"'
shell: cmd
if: success()
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }} #required
# file: ./coverage.xml #optional
# flags: unittests #optional
name: ${{ matrix.os }} Python ${{ matrix.python-version }} #optional
# yml: ./codecov.yml #optional

- name: Build wheel
id: wheel
Expand Down

0 comments on commit cb038f0

Please sign in to comment.