Skip to content

Commit 532aa78

Browse files
pepegapepega
authored andcommitted
fix(lab03): improve CI workflows and documentation
- Fix codecov action file path (app_python/coverage.xml) - Add CODECOV_TOKEN secret to codecov action - Fix Snyk actions with proper file paths for both Python and Go - Add Go CI status badge to app_go/README.md - Fix codecov badge URL in app_python/README.md (remove token param) All Lab03 requirements verified: - 15 unit tests passing with 80% coverage - Matrix builds for Python 3.11/3.12 - Snyk security scanning configured - CalVer versioning implemented - Path filters for monorepo
1 parent bc18721 commit 532aa78

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

.github/workflows/go-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ jobs:
127127
env:
128128
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
129129
with:
130-
args: --severity-threshold=high
130+
args: --file=app_go/go.mod --severity-threshold=high
131131

132132
# ==========================================================================
133133
# Job 4: Build and Push Docker Image

.github/workflows/python-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,11 @@ jobs:
7474
- name: Upload coverage to Codecov
7575
uses: codecov/codecov-action@v4
7676
with:
77-
file: ./coverage.xml
77+
file: app_python/coverage.xml
7878
flags: unittests
7979
name: codecov-${{ matrix.python-version }}
8080
fail_ci_if_error: false
81+
token: ${{ secrets.CODECOV_TOKEN }}
8182

8283
# ========================================
8384
# Job 2: Security Scanning with Snyk
@@ -111,7 +112,7 @@ jobs:
111112
env:
112113
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
113114
with:
114-
args: --severity-threshold=medium
115+
args: --file=app_python/requirements.txt --severity-threshold=medium
115116

116117
# ========================================
117118
# Job 3: Build and Push Docker Image

app_go/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Go DevOps Info Service
22

3+
[![Go CI](https://github.com/pepegx/DevOps-Core-Course/actions/workflows/go-ci.yml/badge.svg)](https://github.com/pepegx/DevOps-Core-Course/actions/workflows/go-ci.yml)
4+
35
> A Go implementation of the DevOps Info Service providing system information and health checks via HTTP.
46
57
## Overview

app_python/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# DevOps Info Service
22

33
[![Python CI](https://github.com/pepegx/DevOps-Core-Course/actions/workflows/python-ci.yml/badge.svg)](https://github.com/pepegx/DevOps-Core-Course/actions/workflows/python-ci.yml)
4-
[![codecov](https://codecov.io/gh/pepegx/DevOps-Core-Course/branch/lab03/graph/badge.svg?token=CODECOV_TOKEN)](https://codecov.io/gh/pepegx/DevOps-Core-Course)
4+
[![codecov](https://codecov.io/gh/pepegx/DevOps-Core-Course/graph/badge.svg)](https://codecov.io/gh/pepegx/DevOps-Core-Course)
55

66
> A web service that provides comprehensive system and runtime information for DevOps monitoring and diagnostics.
77

0 commit comments

Comments
 (0)