Skip to content

Commit

Permalink
fix(ci): Build project correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Emrys-Merlin committed Sep 23, 2024
1 parent c4dee87 commit 777b04c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,15 @@ setup:
test:
pytest --cov=web_watchr --cov-report term-missing

.PHONY: run-ci
run-ci:
.PHONY: setup-ci
setup-ci:
pip install --upgrade pip
pip install uv
uv venv
uv pip install -e ".[dev]"

.PHONY: run-ci
run-ci: setup-ci
uv run pytest --cov=web_watchr --cov-report term-missing --cov-report xml:coverage.xml --junit-xml=report.xml

.PHONY: docs
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ major_on_zero = true
branch = "main"
upload_to_PyPI = true
upload_to_release = true
build_command = "make setup && make build"
build_command = "make setup-ci && make build"

0 comments on commit 777b04c

Please sign in to comment.