Skip to content

Commit d2908b7

Browse files
authored
Merge pull request #683 from takluyver/codecov-action-v2
Use codecov Github action v2
2 parents 3dbf696 + 4f52768 commit d2908b7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/downstream.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,16 @@ jobs:
3535
iptest
3636
- name: Run tests nbconvert
3737
run: |
38-
pytest --pyargs nbconvert -p no:unraisableexception -k 'not network'
38+
pytest --cov traitlets --cov-report=xml:coverage-from-nbconvert.xml \
39+
--pyargs nbconvert -p no:unraisableexception -k 'not network'
3940
- name: Run tests notebook
4041
run: |
41-
pytest --pyargs notebook -k 'not selenium and not integration_tests'
42+
pytest --cov traitlets --cov-report=xml:coverage-from-notebook.xml \
43+
--pyargs notebook -k 'not selenium and not integration_tests'
4244
- name: Run tests ipywidgets
4345
run: |
44-
pytest --pyargs ipywidgets
46+
pytest --cov traitlets --cov-report=xml:coverage-from-ipywidgets.xml \
47+
--pyargs ipywidgets
4548

4649
- name: Upload coverage to Codecov
47-
uses: codecov/codecov-action@v1
50+
uses: codecov/codecov-action@v2

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242

4343
- name: Test with pytest
4444
run: |
45-
pytest --cov traitlets -v traitlets
45+
pytest --cov traitlets --cov-report=xml -v traitlets
4646

4747
- name: Upload coverage to Codecov
48-
uses: codecov/codecov-action@v1
48+
uses: codecov/codecov-action@v2

0 commit comments

Comments
 (0)