File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,14 +13,13 @@ jobs:
1313 - uses : actions/checkout@v6
1414 - name : Install dependencies
1515 run : |
16- curl -LsSf https://astral.sh/uv/install.sh | sh
17- ~/.local/bin/uv sync --all-extras
16+ curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
17+ uv sync --all-extras
18+ - name : Check code format
19+ run : uv run ruff format --check ./
1820 - name : Lint with ruff
19- run : |
20- ~/.local/bin/uv run ruff check github_rest_api/ tests/
21+ run : uv run ruff check github_rest_api/ tests/
2122 - name : Lint with Ty
22- run : |
23- ~/.local/bin/uv run ty check
24- - name : Check code format
25- run : |
26- ~/.local/bin/uv run ruff format --check ./
23+ run : uv run ty check
24+ - name : Analyze Dependencies
25+ run : uv run deptry .
Original file line number Diff line number Diff line change 1414 - uses : actions/checkout@v6
1515 - name : Install uv
1616 run : |
17- curl -LsSf https://astral.sh/uv/install.sh | sh
17+ curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
1818 - name : Build and Publish Package to PyPI
1919 run : |
20- ~/.local/bin/ uv build
20+ uv build
2121 ls -lha dist/
22- ~/.local/bin/uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}
23- # - uses: "marvinpinto/action-automatic-releases@latest"
24- # with:
25- # repo_token: ${{ secrets.GITHUB_TOKEN }}
26- # automatic_release_tag: "latest"
27- # prerelease: false
28- # files: |
29- # dist/*
22+ uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ dependencies = [
1212
1313[dependency-groups ]
1414dev = [
15+ " deptry>=0.24.0" ,
1516 " pyright>=1.1.407" ,
1617 " ruff>=0.14.10" ,
1718 " ty>=0.0.8" ,
@@ -25,4 +26,4 @@ include = ["github_rest_api"]
2526
2627[build-system ]
2728requires = [" hatchling" ]
28- build-backend = " hatchling.build"
29+ build-backend = " hatchling.build"
You can’t perform that action at this time.
0 commit comments