Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/lint_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
python-version: "3.10"

- name: Install libs
run: uv sync --no-group dev --group lint
run: uv sync --no-default-groups --group lint --no-install-project

- name: Lint files
run: make lint
Expand All @@ -45,7 +45,7 @@ jobs:
python-version: "3.10"

- name: Install libs
run: uv sync --no-group dev --group typing
run: uv sync --no-default-groups --group typing --no-install-project

- name: Check files
run: make type
Expand All @@ -67,5 +67,8 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install libs
run: uv sync --no-default-groups --group test

- name: Test with python ${{ matrix.python-version }}
run: make tests
2 changes: 1 addition & 1 deletion .github/workflows/publish_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:

- name: Install libs
run: |
uv sync --no-group dev --group docs
uv sync --no-default-groups --group docs
echo "$GITHUB_WORKSPACE/.venv/bin" >> $GITHUB_PATH
echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> $GITHUB_ENV

Expand Down
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
format:
uv run ruff format
uv run ruff check --fix
uv run --no-sync ruff format
uv run --no-sync ruff check --fix

lint:
uv run ruff format --check
uv run ruff check
uv run --no-sync ruff format --check
uv run --no-sync ruff check

type:
uv run ty check
uv run --no-sync ty check

.PHONY: tests
tests:
uv run pytest
uv run --no-sync pytest

check: format lint type tests

Expand Down