Skip to content

Commit a774120

Browse files
committed
Update workflows and gitignore
1 parent 88f9f6a commit a774120

File tree

4 files changed

+19
-5
lines changed

4 files changed

+19
-5
lines changed

.github/workflows/integration.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
python -m pip install invoke .[test]
3030
- name: Run integration tests
3131
run: invoke integration
32-
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.8
33-
name: Upload codecov report
34-
uses: codecov/codecov-action@v2
32+
33+
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
34+
name: Upload integration codecov report
35+
uses: codecov/codecov-action@v4
36+
with:
37+
flags: integration
38+
file: './integration_cov.xml'
39+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/unit.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,11 @@ jobs:
2929
python -m pip install invoke .[test]
3030
- name: Run unit tests
3131
run: invoke unit
32+
33+
- if: matrix.os == 'ubuntu-latest' && matrix.python-version == 3.9
34+
name: Upload unit codecov report
35+
uses: codecov/codecov-action@v4
36+
with:
37+
flags: unit
38+
file: './unit_cov.xml'
39+
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ coverage.xml
4646
*.cover
4747
.hypothesis/
4848
.pytest_cache/
49+
*_cov.xml
4950

5051
# Translations
5152
*.mo

tasks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,12 @@ def check_dependencies(c):
3131

3232
@task
3333
def integration(c):
34-
c.run('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml')
34+
c.run('python -m pytest ./tests/integration --reruns 3 --cov=deepecho --cov-report=xml:./unit_cov.xml')
3535

3636

3737
@task
3838
def unit(c):
39-
c.run('python -m pytest ./tests/unit --reruns 3')
39+
c.run('python -m pytest ./tests/unit --reruns 3 --cov=deepecho --cov-report=xml:./integration_cov.xml')
4040

4141

4242
def _get_minimum_versions(dependencies, python_version):

0 commit comments

Comments
 (0)