Skip to content

Commit

Permalink
ci(python-publish): cache glob, explicit py version
Browse files Browse the repository at this point in the history
  • Loading branch information
teocns committed Jan 12, 2025
1 parent 0ce68d8 commit ba3250f
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,13 @@
# Test with dry run (no actual publish):
# gh workflow run "Upload Python Package" --ref main --field test_mode=dry-run
#
# Test publish to TestPyPI (requires TEST_PYPI_API_TOKEN secret):
# Test publish to TestPyPI (requires TEST_PYPI_API_TOKEN):
# gh workflow run "Upload Python Package" --ref main --field test_mode=testpypi
#
# To check workflow status:
# gh run list --workflow "Upload Python Package"
# gh run view <run-id>

# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: Upload Python Package

on:
Expand Down Expand Up @@ -49,11 +44,14 @@ jobs:
url: ${{ github.event_name == 'release' && 'https://pypi.org/p/agentops' || 'https://test.pypi.org/p/agentops' }}
steps:
- uses: actions/checkout@v4

- name: Setup UV
uses: astral-sh/setup-uv@v5
with:
python-version: '3.x'
python-version: "3.11" # Specify exact version
cache-dependency-glob: |
**/pyproject.toml
**/requirements*.txt
- name: Build and publish
env:
Expand Down

0 comments on commit ba3250f

Please sign in to comment.