Skip to content

Commit eacf1fc

Browse files
committed
Upgraded to codecov 5
1 parent d461959 commit eacf1fc

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
flake8 service tests --count --select=E9,F63,F7,F82 --show-source --statistics
5454
# check for complexity. The GitHub editor is 127 chars wide
5555
flake8 service tests --count --max-complexity=10 --max-line-length=127 --statistics
56-
# Run pylint on the service
56+
# Run pylint on the service package
5757
pylint service tests --max-line-length=127
5858
5959
- name: Run unit tests with pytest
@@ -63,5 +63,11 @@ jobs:
6363
FLASK_APP: "wsgi:app"
6464
DATABASE_URI: "postgresql+psycopg://postgres:pgs3cr3t@postgres:5432/testdb"
6565

66-
- name: Upload code coverage
67-
uses: codecov/codecov-action@v3.1.4
66+
- name: Install packages for Codecov to work
67+
run: apt update && apt install -y git curl gpg
68+
69+
- name: Upload coverage reports to Codecov
70+
uses: codecov/codecov-action@v5
71+
with:
72+
token: ${{ secrets.CODECOV_TOKEN }}
73+
slug: nyu-devops/lab-flask-tdd

0 commit comments

Comments
 (0)