Skip to content

Commit

Permalink
Merge pull request #434 from neutrinoceros/mnt/ditch_quansight-setup-…
Browse files Browse the repository at this point in the history
…python

TST: replace Quansight-Labs/setup-python with astral-sh/setup-uv
  • Loading branch information
neutrinoceros authored Feb 7, 2025
2 parents bbc2ec3 + 804aa0d commit 9d04bbb
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,25 +39,18 @@ jobs:
fail-fast: false
matrix:
python-version:
- 3.14-dev
- '3.14'
- 3.13t

steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

# TODO: ditch Quansight-Labs/setup-python when either condition is met
# - setup-uv support Python pre-releases
# - actions/setup-python support free-threaded versions
# see https://github.com/actions/setup-python/issues/771
- uses: Quansight-Labs/setup-python@b9ab292c751a42bcd2bb465b7fa202ea2c3f5796 # v5.3.1
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
with:
python-version: ${{ matrix.python-version }}
- uses: astral-sh/setup-uv@4db96194c378173c656ce18a155ffc14a9fc4355 # v5.2.2
- name: Configure uv
run: |
echo "UV_PYTHON_PREFERENCE=only-system" >> $GITHUB_ENV
pin=${{ matrix.python-version }}
echo "UV_PYTHON=${pin%-dev}" >> $GITHUB_ENV
echo "UV_PYTHON=${{ matrix.python-version }}" >> $GITHUB_ENV
echo "UV_PRERELEASE=allow" >> $GITHUB_ENV
- run: uv lock --upgrade
- name: Run tests
Expand Down

0 comments on commit 9d04bbb

Please sign in to comment.