Skip to content
Open
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
11 changes: 10 additions & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
name: Package
permissions:
actions: write
contents: write
id-token: write
on:
Expand Down Expand Up @@ -38,7 +39,7 @@ jobs:
run: UV_PROJECT_ENVIRONMENT="$CONDA_PREFIX" uv sync --inexact
- name: Get version bump
id: get-tag
run: echo "bump=$(python version.py)" >> $GITHUB_OUTPUT
run: echo "bump=$(python version.py)" >> "$GITHUB_OUTPUT"
- name: Run tests
if: steps.get-tag.outputs.bump != ''
env:
Expand All @@ -55,6 +56,14 @@ jobs:
- name: Save git tag
if: steps.get-tag.outputs.bump != ''
run: git push origin ${{ steps.get-tag.outputs.bump }}
# Tag pushes made with GITHUB_TOKEN do not trigger other workflows.
- name: Trigger documentation deployment
if: steps.get-tag.outputs.bump != ''
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
RELEASE_TAG: ${{ steps.get-tag.outputs.bump }}
run: gh workflow run docs.yaml --ref "$RELEASE_TAG"
- name: Post coverage comment
if: steps.get-tag.outputs.bump != ''
uses: py-cov-action/python-coverage-comment-action@v3
Expand Down
Loading