Skip to content
Merged
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
17 changes: 8 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,13 @@ jobs:
- uses: actions/checkout@v6
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
~/.local/bin/uv sync --all-extras
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
uv sync --all-extras
- name: Check code format
run: uv run ruff format --check ./
- name: Lint with ruff
run: |
~/.local/bin/uv run ruff check github_rest_api/ tests/
run: uv run ruff check github_rest_api/ tests/
- name: Lint with Ty
run: |
~/.local/bin/uv run ty check
- name: Check code format
run: |
~/.local/bin/uv run ruff format --check ./
run: uv run ty check
- name: Analyze Dependencies
run: uv run deptry .
13 changes: 3 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,9 @@ jobs:
- uses: actions/checkout@v6
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -LsSf https://astral.sh/uv/install.sh | sudo env UV_INSTALL_DIR="/usr/local/bin" sh
- name: Build and Publish Package to PyPI
run: |
~/.local/bin/uv build
uv build
ls -lha dist/
~/.local/bin/uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}
# - uses: "marvinpinto/action-automatic-releases@latest"
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# automatic_release_tag: "latest"
# prerelease: false
# files: |
# dist/*
uv publish -u __token__ -p ${{ secrets.PYPI_GITHUB_REST_API }}
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ dependencies = [

[dependency-groups]
dev = [
"deptry>=0.24.0",
"pyright>=1.1.407",
"ruff>=0.14.10",
"ty>=0.0.8",
Expand All @@ -25,4 +26,4 @@ include = ["github_rest_api"]

[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
build-backend = "hatchling.build"
79 changes: 76 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.