Skip to content

Commit

Permalink
tests: move coverage folder (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
tristiisch authored Sep 30, 2024
1 parent 7343b5d commit 62f29b2
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 14 deletions.
16 changes: 16 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
[run]
source =
./src
./tests
data_file = ./coverage/result

[xml]
output = ./coverage/coverage.xml

[json]
output = ./coverage/coverage.json
pretty_print = True

[report]
; show_missing = True

[html]
directory = ./coverage/htmlcov
2 changes: 1 addition & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: tristiisch/PyRamid
files: ./coverage/result
files: ./coverage/coverage1.xml
fail_ci_if_error: true

docker_image_push:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ coverage.xml
*.py,cover
.hypothesis/
.pytest_cache/
cover/
coverage/

# Translations
*.mo
Expand Down Expand Up @@ -166,3 +166,4 @@ logs/*
git_info.json

!.gitkeep
./.docker
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -139,4 +139,4 @@ RUN pip install -e .
USER $APP_USER

# Run tests
CMD ["pytest", "--cov=pyramid", "tests/", "--cov-config=.coveragerc"]
CMD ["pytest", "--cov=pyramid", "tests/", "--cov-config=.coveragerc", "--cov-report=xml"]
9 changes: 0 additions & 9 deletions auto_update.sh

This file was deleted.

4 changes: 2 additions & 2 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ services:
image: tristiisch/pyramid:latest
restart: always
volumes:
- ./docker/pyramid/logs:/app/logs
- ./docker/pyramid/songs:/app/songs
- ./.docker/pyramid/logs:/app/logs
- ./.docker/pyramid/songs:/app/songs
env_file: .env

0 comments on commit 62f29b2

Please sign in to comment.