Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify some GitHub workflows #268

Merged
merged 1 commit into from
Oct 9, 2024
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
10 changes: 2 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,10 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- run: uv pip install build --system
- run: uv pip freeze
- if: ${{ github.event_name != 'push' }}
env:
GITHUB_TOKEN: ${{ github.token }}
Expand All @@ -48,7 +42,7 @@ jobs:
git push --tags
gh release create $DATE --notes "Automated weekly release"
- name: Build a binary wheel and a source tarball
run: python -m build --outdir dist/ .
run: uv build
- name: Publish distribution to PyPI
if: ${{ github.event_name != 'push' || startsWith(github.ref, 'refs/tags') }}
uses: pypa/gh-action-pypi-publish@release/v1
run: uv publish
2 changes: 1 addition & 1 deletion .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
- name: Run pyright
uses: jakebailey/pyright-action@v2
with:
version: "1.1.331"
version: PATH

create-issue-on-failure:
name: Create an issue if daily typecheck failed
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ dev = [
"covdefaults==2.3.0",
"coverage==7.6.1",
"Markdown>=3,<4",
"pyright==1.1.331",
"pytest==8.3.3",
"pytest-antilru==2.0.0",
"pytest-asyncio==0.24.0",
Expand Down