Skip to content

Commit e925926

Browse files
committed
Trigger workflow
1 parent 06c0645 commit e925926

1 file changed

Lines changed: 19 additions & 18 deletions

File tree

.github/workflows/python-tests.yml

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Python tests with coverage
1+
name: Python Tests with Coverage
22

33
on:
44
push:
@@ -11,24 +11,25 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14-
- uses: actions/checkout@v3
14+
- name: Checkout code
15+
uses: actions/checkout@v3
1516

16-
- name: Set up Python 3.11
17-
uses: actions/setup-python@v4
18-
with:
19-
python-version: 3.11
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: "3.12"
2021

21-
- name: Install dependencies
22-
run: |
23-
python -m pip install --upgrade pip
24-
pip install pytest pytest-cov
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements.txt
26+
pip install pytest pytest-cov codecov
2527
26-
- name: Run tests with coverage
27-
run: |
28-
pytest --cov=app --cov-report=xml
28+
- name: Run tests with coverage
29+
run: |
30+
pytest --cov=app --cov-report=xml
2931
30-
- name: Upload coverage to Codecov
31-
uses: codecov/codecov-action@v3
32-
with:
33-
files: coverage.xml
34-
fail_ci_if_error: true
32+
- name: Upload coverage to Codecov
33+
uses: codecov/codecov-action@v4
34+
with:
35+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)