File tree Expand file tree Collapse file tree 5 files changed +34
-52
lines changed
Expand file tree Collapse file tree 5 files changed +34
-52
lines changed Original file line number Diff line number Diff line change 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
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
Original file line number Diff line number Diff line change 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 }}
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