Skip to content

Commit

Permalink
Don't run publish tests from fork (#8168)
Browse files Browse the repository at this point in the history
Only the astral-sh/uv repository has the secrets.

---------

Co-authored-by: Charlie Marsh <[email protected]>
  • Loading branch information
konstin and charliermarsh authored Oct 14, 2024
1 parent c5d9f55 commit 0c5d05d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1012,13 +1012,14 @@ jobs:
code:
- "crates/uv-publish/**/*"
- "scripts/publish/**/*"
- ".github/workflows/ci.yml"
integration-test-publish:
timeout-minutes: 10
needs: integration-test-publish-changed
name: "integration test | uv publish"
runs-on: ubuntu-latest
if: ${{ github.repository == 'astral-sh/uv' && (needs.integration-test-publish-changed.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
if: ${{ github.repository == 'astral-sh/uv' && github.event.pull_request.head.repo.fork != true && (needs.integration-test-publish-changed.outputs.code == 'true' || github.ref == 'refs/heads/main') }}
environment: uv-test-publish
env:
# No dbus in GitHub Actions
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish/test_publish.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "httpx>=0.27,<0.28",
# "httpx>=0.27.2,<0.28",
# "packaging>=24.1,<25",
# ]
# ///
Expand Down

0 comments on commit 0c5d05d

Please sign in to comment.