Skip to content

Commit 8dcc9e2

Browse files
fix: make sure we use uv, use make targets in actions
1 parent 0c15da7 commit 8dcc9e2

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

.github/workflows/cd-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: uv python install 3.11
3131

3232
- name: Install dependencies
33-
run: uv sync --frozen
33+
run: make install
3434

3535
- name: Python Semantic Release
3636
id: release

.github/workflows/ci-pr.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ jobs:
1919
run: uv python install 3.11
2020

2121
- name: Install dependencies
22-
run: uv sync --frozen
22+
run: make install
2323

2424
- name: Lint
25-
run: uv run ruff check .
25+
run: make lint
2626

2727
- name: Format check
28-
run: uv run ruff format --check .
28+
run: make format-check
2929

3030
- name: Test
31-
run: uv run pytest
31+
run: make test

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ help:
1414
@echo "============================="
1515
@echo "make install - Sync dependencies (uses Python $(PYTHON_VERSION))"
1616
@echo "make format - Format code using Ruff"
17+
@echo "make format-check - Check code formatting without modifying"
1718
@echo "make lint - Lint code using Ruff"
1819
@echo "make test - Run tests with coverage"
19-
@echo "make validate-dev - Run full development validation (install, lint, format, test, release-dry-run, act-ci)"
20+
@echo "make validate-dev - Run development validation (install, lint, format-check, test)"
2021
@echo "make clean - Remove artifacts and cache"
2122
@echo "make docker-build - Build the Docker image"
2223
@echo "make docker-run - Run the Docker container"
@@ -43,6 +44,10 @@ format:
4344
@echo "✨ Formatting code..."
4445
uv run ruff format .
4546

47+
format-check:
48+
@echo "🔍 Checking code formatting..."
49+
uv run ruff format --check .
50+
4651
lint:
4752
@echo "🔍 Linting code..."
4853
uv run ruff check . --fix
@@ -55,7 +60,7 @@ validate-dev:
5560
@echo "🔍 Running simple development validation..."
5661
$(MAKE) install
5762
$(MAKE) lint
58-
$(MAKE) format
63+
$(MAKE) format-check
5964
$(MAKE) test
6065
@echo "✅ Development simple validation complete!"
6166

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ select = ["E", "F", "I"]
5050
version_toml = ["pyproject.toml:project.version"]
5151
branch = "main"
5252
commit_parser = "conventional"
53-
build_command = "uv build"
53+
build_command = "pip install build && python -m build"
5454
upload_to_pypi = false
5555
upload_to_release = true
5656
tag_format = "v{version}"

0 commit comments

Comments
 (0)