File tree 5 files changed +34
-52
lines changed
5 files changed +34
-52
lines changed Original file line number Diff line number Diff line change 18
18
- uses : actions/setup-python@v4
19
19
with :
20
20
python-version : " 3.10"
21
- - uses : arduino/setup-task@v1
22
- with :
23
- repo-token : ${{ github.token }}
21
+ - uses : extractions/setup-just@v2
24
22
- run : curl -LsSf https://astral.sh/uv/install.sh | sh
25
- - run : task install lint-ci
23
+ - run : just install lint-ci
26
24
27
25
pytest :
28
26
runs-on : ubuntu-latest
38
36
- uses : actions/setup-python@v4
39
37
with :
40
38
python-version : ${{ matrix.python-version }}
41
- - uses : arduino/setup-task@v1
42
- with :
43
- repo-token : ${{ github.token }}
39
+ - uses : extractions/setup-just@v2
44
40
- run : curl -LsSf https://astral.sh/uv/install.sh | sh
45
- - run : task install tests
41
+ - run : just install tests
Original file line number Diff line number Diff line change 17
17
with :
18
18
path : ~/.cache/uv
19
19
key : publish-${{ hashFiles('pyproject.toml') }}
20
- - uses : arduino /setup-task@v1
20
+ - uses : extractions /setup-just@v2
21
21
- run : curl -LsSf https://astral.sh/uv/install.sh | sh
22
- - run : task publish
22
+ - run : just publish
23
23
env :
24
24
PYPI_TOKEN : ${{ secrets.PYPI_TOKEN }}
Original file line number Diff line number Diff line change
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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments