Skip to content

Commit a915a3d

Browse files
committed
Use codecov action.
1 parent f14c910 commit a915a3d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/main.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ jobs:
5959
shell: bash -l {0}
6060
run: tox -e test -- tests -m "unit or (not integration and not end_to_end)" --cov=src --cov=tests --cov-report=xml
6161

62-
- name: Upload coverage report for unit tests and doctests.
63-
if: runner.os == 'Linux' && matrix.python-version == '3.10'
64-
shell: bash -l {0}
65-
run: bash <(curl -s https://codecov.io/bash) -F unit -c
62+
- name: Upload unit test coverage reports to Codecov with GitHub Action
63+
uses: codecov/codecov-action@v4
64+
with:
65+
flags: unit
6666

6767
- name: Run end-to-end tests.
6868
shell: bash -l {0}
6969
run: tox -e test -- tests -m end_to_end --cov=src --cov=tests --cov-report=xml
7070

71-
- name: Upload coverage reports of end-to-end tests.
72-
if: runner.os == 'Linux' && matrix.python-version == '3.10'
73-
shell: bash -l {0}
74-
run: bash <(curl -s https://codecov.io/bash) -F end_to_end -c
71+
- name: Upload end_to_end test coverage reports to Codecov with GitHub Action
72+
uses: codecov/codecov-action@v4
73+
with:
74+
flags: end_to_end

0 commit comments

Comments
 (0)