Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 0
automate releases and fix linux workflow#1
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| name: Python uv Release | ||
| on: | ||
| push: | ||
| tags: | ||
| - "v*.*.*" | ||
| permissions: | ||
| contents: write # required for GitHub Release | ||
| id-token: write # required for PyPI Trusted Publishing | ||
| actions: write # required for tag deletion | ||
| jobs: | ||
| release: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Check out code | ||
| uses: actions/checkout@v4 | ||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
| - name: Install uv | ||
| run: | | ||
| curl -LsSf https://astral.sh/uv/install.sh | sh | ||
| echo "$HOME/.cargo/bin" >> $GITHUB_PATH | ||
| - name: Sync dependencies | ||
| run: uv sync | ||
| - name: Run tests | ||
| id: test | ||
| continue-on-error: true | ||
| run: uv run pytest | ||
| - name: Delete tag on failure | ||
| if: steps.test.conclusion == 'failure' | ||
| run: | | ||
| echo "Tests failed. Deleting tag ${GITHUB_REF#refs/tags/}..." | ||
| git config --global user.name "github-actions[bot]" | ||
| git config --global user.email "github-actions[bot]@users.noreply.github.com" | ||
| git push --delete origin ${GITHUB_REF#refs/tags/} | ||
| exit 1 | ||
| - name: Build package | ||
| run: uv build | ||
| - name: Build changelog | ||
| id: gen_changelog | ||
| uses: mikepenz/release-changelog-builder-action@v5 | ||
| with: | ||
| failOnError: "true" | ||
| configuration: .github/workflows/release_config.json | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Publish release on GitHub | ||
| uses: softprops/action-gh-release@v1 | ||
| with: | ||
| files: dist/* | ||
| body: ${{ steps.gen_changelog.outputs.changelog }} | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Publish to PyPI via Trusted Publishing | ||
| run: uv publish | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,65 @@ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "categories": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## ✨ Release", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "release" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## 🚀 Features", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "kind/feature", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "enhancement" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## 🐛 Fixes", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "fix", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "bug" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## ♻️ Refactoring", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "refactoring" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## ⚡️ Performance Improvements", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "performance" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## \uD83D\uDCDA Documentation", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "documentation", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "doc" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## \uD83D\uDEA6 Tests", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "labels": [ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "test" | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| }, | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## \uD83D\uDEE0 Other Updates", | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Comment on lines
+36
to
+49
CopilotAI | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| "title": "## \uD83D\uDCDA Documentation", | |
| "labels": [ | |
| "documentation", | |
| "doc" | |
| ] | |
| }, | |
| { | |
| "title": "## \uD83D\uDEA6 Tests", | |
| "labels": [ | |
| "test" | |
| ] | |
| }, | |
| { | |
| "title": "## \uD83D\uDEE0 Other Updates", | |
| "title": "## 📚 Documentation", | |
| "labels": [ | |
| "documentation", | |
| "doc" | |
| ] | |
| }, | |
| { | |
| "title": "## 🚦 Tests", | |
| "labels": [ | |
| "test" | |
| ] | |
| }, | |
| { | |
| "title": "## 🛠 Other Updates", |
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIJul 11, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Piping a remote script directly into shell can pose a security risk; consider pinning to a known version, verifying a checksum, or downloading the script separately for review before execution.