Skip to content

Commit eb55927

Browse files
authored
Create codecov.yml
1 parent c04442b commit eb55927

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/codecov.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Codecov
2+
on: [push, pull_request]
3+
jobs:
4+
run:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- name: Checkout
8+
uses: actions/checkout@v4
9+
with:
10+
fetch-depth: 0
11+
- name: Set up Python 3.10
12+
uses: actions/setup-python@v4
13+
with:
14+
python-version: '3.10'
15+
- name: Install dependencies
16+
run: pip install -r requirements.txt
17+
- name: Run tests and collect coverage
18+
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
19+
- name: Upload coverage to Codecov
20+
uses: codecov/codecov-action@v4
21+
with:
22+
verbose: true
23+
env:
24+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)