Skip to content

Commit

Permalink
ci(local): add cargo test
Browse files Browse the repository at this point in the history
- fix(ci): add pip
  • Loading branch information
JacobCoffee committed Oct 7, 2023
1 parent 16e008d commit 271b95a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ install: ## Install the project, dependencies, and pre-commit for loca
.PHONY: clean
clean: ## Cleanup temporary build artifacts
@echo "=> Cleaning working directory"
@rm -rf .pytest_cache .ruff_cache .hypothesis build/ -rf dist/ .eggs/ target/
@rm -rf .pytest_cache .ruff_cache .hypothesis build/ -rf dist/ .eggs/
@cargo clean
@find . -name '*.egg-info' -exec rm -rf {} +
@find . -name '*.egg' -exec rm -f {} +
@find . -name '*.pyc' -exec rm -f {} +
Expand Down Expand Up @@ -113,6 +114,7 @@ coverage: ## Run the tests and generate coverage report
test: ## Run the tests
@echo "=> Running test cases"
@$(ENV_PREFIX)pytest tests
@cargo test
@echo "=> Tests complete"

.PHONY: test-all
Expand Down
12 changes: 11 additions & 1 deletion pdm.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dev = [
"ruff>=0.0.292",
"pre-commit>=3.4.0",
"sourcery>=1.10.1",
"pip>=23.2.1",
]

[tool.pdm.scripts]
Expand Down

0 comments on commit 271b95a

Please sign in to comment.