Skip to content

Commit

Permalink
Build improvements.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexdlaird committed Mar 5, 2024
1 parent d10111c commit 36e29dc
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ exclude_lines =
if 0:
if __name__ == .__main__.:

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

[html]
title = air-quality-bot Coverage Report
directory = _build/coverage
directory = build/coverage
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
if: matrix.python-version == '3.11'
uses: codecov/codecov-action@v1
with:
directory: ./_build/coverage
directory: ./build/coverage

automerge:
name: "Auto Approve"
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
.env.dev
lib
build
_build
.coverage
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ nopyc:
find . -name __pycache__ | xargs rm -rf || true

clean: nopyc
rm -rf _build .venv
rm -rf build .venv

test: install
@( \
source .venv/bin/activate; \
python -m coverage run -m unittest discover -v -b && python -m coverage xml -o _build/coverage/coverage.xml; \
coverage run -m unittest discover -v -b; \
coverage report && coverage xml && coverage html; \
)

run-devserver: install
Expand Down

0 comments on commit 36e29dc

Please sign in to comment.