Skip to content

Commit 3eed532

Browse files
committed
migrate from task to just
1 parent 04e594e commit 3eed532

File tree

5 files changed

+34
-52
lines changed

5 files changed

+34
-52
lines changed

.github/workflows/ci.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ jobs:
1818
- uses: actions/setup-python@v4
1919
with:
2020
python-version: "3.10"
21-
- uses: arduino/setup-task@v1
22-
with:
23-
repo-token: ${{ github.token }}
21+
- uses: extractions/setup-just@v2
2422
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
25-
- run: task install lint-ci
23+
- run: just install lint-ci
2624

2725
pytest:
2826
runs-on: ubuntu-latest
@@ -38,8 +36,6 @@ jobs:
3836
- uses: actions/setup-python@v4
3937
with:
4038
python-version: ${{ matrix.python-version }}
41-
- uses: arduino/setup-task@v1
42-
with:
43-
repo-token: ${{ github.token }}
39+
- uses: extractions/setup-just@v2
4440
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
45-
- run: task install tests
41+
- run: just install tests

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
with:
1818
path: ~/.cache/uv
1919
key: publish-${{ hashFiles('pyproject.toml') }}
20-
- uses: arduino/setup-task@v1
20+
- uses: extractions/setup-just@v2
2121
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
22-
- run: task publish
22+
- run: just publish
2323
env:
2424
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}

Justfile

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
default: install lint tests
2+
3+
install:
4+
uv lock --upgrade
5+
uv sync --all-extras --frozen
6+
7+
lint:
8+
uv run ruff format .
9+
uv run ruff check . --fix
10+
uv run mypy .
11+
12+
lint-ci:
13+
uv run ruff format . --check
14+
uv run ruff check . --no-fix
15+
uv run mypy .
16+
17+
tests *args:
18+
uv run pytest {{ args }}
19+
20+
publish:
21+
rm -rf dist/*
22+
uv tool run --from build python -m build --installer uv
23+
uv tool run twine check dist/*
24+
uv tool run twine upload dist/* --username __token__ --password $PYPI_TOKEN

Taskfile.yml

-38
This file was deleted.

uv.lock

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)