Skip to content

Commit 80ed347

Browse files
committed
Add make all and update GitHub Actions to use it.
1 parent 63fbb0a commit 80ed347

File tree

2 files changed

+9
-7
lines changed

2 files changed

+9
-7
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ jobs:
2222
npm install -g markdownlint-cli
2323
make install-dev
2424
25-
- name: Run code quality checks
26-
run: make check-all
27-
28-
- name: Test with pytest
29-
run: make test-cov
25+
- name: Run all checks and tests
26+
run: make all
3027

3128
- name: Upload coverage to Codecov
3229
uses: codecov/codecov-action@v3

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help install install-dev check-format fix-format check-lint fix-lint check-type check-all fix-all test test-cov clean pre-commit
1+
.PHONY: help install install-dev check-format fix-format check-lint fix-lint check-type check-all fix-all test test-cov clean all pre-commit
22

33
help: ## Show this help message
44
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
@@ -52,8 +52,13 @@ clean:
5252
find . -type f -name "*.pyc" -delete
5353
find . -type d -name "__pycache__" -delete
5454
find . -type d -name "*.egg-info" -exec rm -rf {} +
55-
rm -rf .coverage/ .pytest_cache/ .mypy_cache/
55+
rm -rf .coverage/ .pytest_cache/ .mypy_cache/ .ruff_cache/
5656

5757
# Run pre-commit hooks
5858
pre-commit:
5959
pre-commit run --all-files
60+
61+
# Run all checks and tests with coverage
62+
all:
63+
make check-all
64+
make test-cov

0 commit comments

Comments
 (0)