File tree Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Expand file tree Collapse file tree 2 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 13
13
" pytest" ,
14
14
" Redis" ,
15
15
" testdb"
16
- ],
16
+ ],
17
17
"[python]" : {
18
18
"editor.defaultFormatter" : " ms-python.black-formatter" ,
19
19
"editor.formatOnSave" : true
50
50
" tamasfe.even-better-toml" ,
51
51
" donjayamanne.githistory" ,
52
52
" GitHub.vscode-pull-request-github" ,
53
+ " github.vscode-github-actions" ,
53
54
" hbenl.vscode-test-explorer" ,
54
55
" LittleFoxTeam.vscode-python-test-adapter" ,
55
56
" redhat.vscode-yaml" ,
56
57
" unjinjang.rest-api-client" ,
57
58
" ms-azuretools.vscode-docker" ,
58
- " github.vscode-github-actions" ,
59
59
" streetsidesoftware.code-spell-checker" ,
60
60
" bbenoist.vagrant"
61
61
]
Original file line number Diff line number Diff line change 17
17
# Label used to access the service container
18
18
redis :
19
19
# Docker Hub image
20
- image : redis
20
+ image : redis:6-alpine
21
21
# Set health checks to wait until redis has started
22
22
options : >-
23
23
--health-cmd "redis-cli ping"
@@ -45,14 +45,20 @@ jobs:
45
45
pylint service tests --max-line-length=127
46
46
47
47
- name : Run unit tests with PyTest
48
- run : pytest --pspec --cov=service --cov-report=xml --cov-fail-under=95
48
+ run : pytest --pspec --cov=service --cov-fail-under=95 --cov-report=xml
49
49
env :
50
50
DATABASE_URI : " redis://redis:6379"
51
51
52
+ # #####################################################################
52
53
# Create a CODECOV_TOKEN in Settings->Secrets and variables->Actions
53
54
# and then uncomment the CodeCov action during hands-on lab
55
+ # #####################################################################
54
56
55
- # - name: Upload coverage reports to Codecov
56
-
57
- # with:
58
- # token: ${{ secrets.CODECOV_TOKEN }}
57
+ - name : Install packages for Codecov to work
58
+ run : apt-get update && apt-get install -y git curl gpg
59
+
60
+ - name : Upload coverage reports to Codecov
61
+ uses : codecov/codecov-action@v5
62
+ with :
63
+ token : ${{ secrets.CODECOV_TOKEN }}
64
+ slug : nyu-devops/lab-github-actions
You can’t perform that action at this time.
0 commit comments