Skip to content

Commit

Permalink
add coverage output to gha
Browse files Browse the repository at this point in the history
  • Loading branch information
mmorgantaylor committed Oct 24, 2024
1 parent de902ec commit 4cdb508
Show file tree
Hide file tree
Showing 4 changed files with 103 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python-cli-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ jobs:
cd teaspoons-cli
poetry run ruff check
- name: Run tests with pytest
- name: Run tests with coverage
run: |
cd teaspoons-cli
poetry run pytest
poetry run pytest --cov-report term --cov=teaspoons
notify-slack:
needs: [ bump-check, build-and-test-python-cli ]
Expand Down
99 changes: 97 additions & 2 deletions teaspoons-cli/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion teaspoons-cli/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ packages = [

[tool.poetry.dependencies]
python = "^3.9"
teaspoons-client = {path = "teaspoons/generated"}
teaspoons-client = {path = "generated"}
python-dotenv = "^1.0.1"
click = "^8.1.7"
oauth2-cli-auth = "^1.5.0"
Expand All @@ -19,6 +19,7 @@ PyJWT = "^2.9.0"

[tool.poetry.group.dev.dependencies]
pytest = "^8.3.3"
pytest-cov = "^3.0.0"
ruff = "^0.7.1"
black = "^24.8.0"

Expand Down
4 changes: 2 additions & 2 deletions teaspoons-cli/teaspoons-client.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
tasks.openApiGenerate {
generatorName.set("python")
inputSpec.set("$rootDir/common/openapi.yml")
outputDir.set("$projectDir/teaspoons/generated")
outputDir.set("$projectDir/generated")
configOptions.put("projectName", "teaspoons-client")
configOptions.put("packageName", "teaspoons_client")
configOptions.put("packageVersion", "0.0.0")
Expand All @@ -21,7 +21,7 @@ task cliBuild (type:Exec) {
//compileJava.dependsOn tasks.openApiGenerate

task customCleanUp(type:Delete) {
delete "$rootDir/teaspoons-cli/teaspoons/generated"
delete "$rootDir/teaspoons-cli/generated"
}

tasks.clean.dependsOn(tasks.customCleanUp)

0 comments on commit 4cdb508

Please sign in to comment.