Skip to content

Commit 231bbeb

Browse files
committed
fix: add codecove badge
1 parent 40298d8 commit 231bbeb

File tree

7 files changed

+499
-17
lines changed

7 files changed

+499
-17
lines changed

.coverage

52 KB
Binary file not shown.

.github/actions/tests/python/action.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ branding:
77
icon: "git-pull-request"
88
color: "orange"
99
inputs:
10+
environment:
11+
description: "The environment to run tests in, such as local or ci"
12+
required: true
13+
type: string
14+
default: "local"
1015
python-version:
1116
description: "The version of Python to use, such as 3.11.0"
1217
required: true
@@ -97,6 +102,7 @@ runs:
97102
shell: bash
98103
run: |
99104
touch ./.env
105+
echo "ENVIRONMENT=${{ env.ENVIRONMENT }}" >> ./.env
100106
echo "OPENAI_API_ORGANIZATION=${{ env.OPENAI_API_ORGANIZATION }}" >> ./.env
101107
echo "OPENAI_API_KEY=${{ env.OPENAI_API_KEY }}" >> ./.env
102108
echo "MYSQL_HOST=${{ env.MYSQL_HOST }}" >> ./.env
@@ -107,6 +113,7 @@ runs:
107113
echo "MYSQL_CHARSET=${{ env.MYSQL_CHARSET }}" >> ./.env
108114
echo "DEBUG_MODE=False" >> ./.env
109115
env:
116+
ENVIRONMENT: ${{ inputs.environment }}
110117
OPENAI_API_ORGANIZATION: ${{ inputs.openai-api-organization }}
111118
OPENAI_API_KEY: ${{ inputs.openai-api-key }}
112119
MYSQL_HOST: ${{ inputs.mysql-host }}
@@ -122,4 +129,10 @@ runs:
122129
GITHUB_ACTIONS: "true"
123130
DEBUG_MODE: "true"
124131
run: |
125-
make test
132+
make coverage
133+
134+
- name: Upload coverage to Codecov
135+
uses: codecov/codecov-action@v5
136+
with:
137+
files: ./coverage.xml
138+
fail_ci_if_error: true

.github/workflows/testsPython.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
- name: Run Python tests
2727
uses: ./.github/actions/tests/python
2828
with:
29+
environment: "local"
2930
python-version: "${{ env.python-version}}"
3031
openai-api-organization: "${{ secrets.OPENAI_API_ORGANIZATION }}"
3132
openai-api-key: "${{ secrets.OPENAI_API_KEY }}"

CHANGELOG.md

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,25 @@
1-
## [0.1.3](https://github.com/FullStackWithLawrence/agentic-ai-workflow/compare/v0.1.2...v0.1.3) (2025-10-16)
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file.
24

5+
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## [0.1.3](https://github.com/FullStackWithLawrence/agentic-ai-workflow/compare/v0.1.2...v0.1.3) (2025-10-16)
38

49
### Bug Fixes
510

6-
* increase unit test coverage ratio to 95% ([045ab40](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/045ab409887f2633ae71fbede0aad6f29728839c))
11+
- increase unit test coverage ratio to 95% ([045ab40](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/045ab409887f2633ae71fbede0aad6f29728839c))
712

813
## [0.1.2](https://github.com/FullStackWithLawrence/agentic-ai-workflow/compare/v0.1.1...v0.1.2) (2025-10-01)
914

10-
1115
### Bug Fixes
1216

13-
* add real sql server values ([76a79d7](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/76a79d75f6f9bb47bfb3a3d6abf555bdd3ddf2a2))
17+
- add real sql server values ([76a79d7](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/76a79d75f6f9bb47bfb3a3d6abf555bdd3ddf2a2))
1418

1519
## [0.1.1](https://github.com/FullStackWithLawrence/agentic-ai-workflow/compare/v0.1.0...v0.1.1) (2025-10-01)
1620

17-
1821
### Bug Fixes
1922

20-
* add @semantic-release/exec ([0d45b68](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/0d45b686959a9166bf30aa6d3a556d05b4f320b4))
21-
* setup ci-cd ([b264438](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/b2644385a1645c9cfb0891b09b6d5b573d162466))
22-
* style console output, and test ci-cd ([d37802e](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/d37802eb6842cea544a341251995270e3fb49bd7))
23-
24-
# Change Log
25-
26-
All notable changes to this project will be documented in this file.
27-
28-
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).
23+
- add @semantic-release/exec ([0d45b68](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/0d45b686959a9166bf30aa6d3a556d05b4f320b4))
24+
- setup ci-cd ([b264438](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/b2644385a1645c9cfb0891b09b6d5b573d162466))
25+
- style console output, and test ci-cd ([d37802e](https://github.com/FullStackWithLawrence/agentic-ai-workflow/commit/d37802eb6842cea544a341251995270e3fb49bd7))

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ init-dev:
6161
test:
6262
python -m unittest discover -s app/
6363

64+
coverage:
65+
python -m coverage run --source=app --omit='app/tests/*' -m unittest discover -s app/tests
66+
python -m coverage report -m --omit='app/tests/*'
67+
python -m coverage xml --omit='app/tests/*'
68+
6469
lint:
6570
isort .
6671
pre-commit run --all-files

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33
[![FullStackWithLawrence](https://a11ybadges.com/badge?text=FullStackWithLawrence&badgeColor=orange&logo=youtube&logoColor=282828)](https://www.youtube.com/@FullStackWithLawrence)<br>
44
[![OpenAI](https://a11ybadges.com/badge?logo=openai)](https://platform.openai.com/)
55
[![Docker](https://a11ybadges.com/badge?logo=docker)](https://docs.docker.com/)
6-
[![Python](https://a11ybadges.com/badge?logo=python)](https://www.python.org/)
6+
[![Python](https://a11ybadges.com/badge?logo=python)](https://www.python.org/)<br>
77
![Unit Tests](https://github.com/FullStackWithLawrence/agentic-ai-workflow/actions/workflows/testsPython.yml/badge.svg?branch=main)
8+
[![codecov](https://codecov.io/gh/FullStackWithLawrence/agentic-ai-workflow/branch/main/graph/badge.svg)](https://codecov.io/gh/FullStackWithLawrence/agentic-ai-workflow)
89
![GHA pushMain Status](https://img.shields.io/github/actions/workflow/status/FullStackWithLawrence/agentic-ai-workflow/pushMain.yml?branch=main)
9-
![Auto Assign](https://github.com/FullStackwithLawrence/agentic-ai-workflow/actions/workflows/auto-assign.yml/badge.svg)
10+
![Auto Assign](https://github.com/FullStackwithLawrence/agentic-ai-workflow/actions/workflows/auto-assign.yml/badge.svg)<br>
1011
[![Release Notes](https://img.shields.io/github/release/FullStackWithLawrence/agentic-ai-workflow)](https://github.com/FullStackWithLawrence/agentic-ai-workflow/releases)
1112
[![License: AGPL v3](https://img.shields.io/badge/License-AGPL_v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)
1213
[![hack.d Lawrence McDaniel](https://img.shields.io/badge/hack.d-Lawrence%20McDaniel-orange.svg)](https://lawrencemcdaniel.com)

0 commit comments

Comments
 (0)