File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Python tests with coverage
1+ name : Python Tests with Coverage
22
33on :
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 }}
You can’t perform that action at this time.
0 commit comments