Skip to content

Commit d52f07c

Browse files
committed
coverage report workflow
1 parent 311df5e commit d52f07c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

Diff for: .github/workflows/main.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Run tests and upload coverage
2+
3+
on:
4+
push
5+
6+
jobs:
7+
test:
8+
name: Run tests and collect coverage
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
with:
14+
fetch-depth: 0
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
19+
- name: Install dependencies
20+
run: pip install pytest pytest-cov
21+
22+
- name: Install package
23+
run: pip install .
24+
25+
- name: Run tests
26+
run: pytest --cov=argalias --cov-branch --cov-report=xml --cov-report=xml:coverage.xml
27+
28+
- name: List files
29+
run: ls -al
30+
31+
- name: Upload results to Codecov
32+
uses: codecov/codecov-action@v5
33+
with:
34+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)