Skip to content

Commit

Permalink
Replace setup-pyton by uv
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Dec 27, 2024
1 parent 92e432a commit e1474d3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
9 changes: 1 addition & 8 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,12 @@ jobs:
runs-on: ubuntu-24.04
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: "3.12"
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.9.0/requirements/uv.txt
- name: Install project
run: |
uv --no-progress venv
uv --no-progress sync
- name: Generate dynamic doc
run: |
uv --no-progress run --frozen -m extra_platforms.docs_update
uv --no-progress run --python 3.13 --frozen -m extra_platforms.docs_update
- uses: peter-evans/[email protected]
with:
assignees: ${{ github.actor }}
Expand Down
18 changes: 13 additions & 5 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,18 +110,26 @@ jobs:
continue-on-error: ${{ matrix.state == 'unstable' }}
steps:
- uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
# Default Python on windows-2019 is older than the minimum required by uv:
#
# ERROR: Ignored the following versions that require a different python version:
# (...) 0.5.11 Requires-Python >=3.8
# ERROR: Could not find a version that satisfies the requirement uv==0.5.11 (from versions: none)
# ERROR: No matching distribution found for uv==0.5.11
#
# XXX This step might be able to be removed after 2025-01-10, once Python 3.8 is the default on windows-2019
# images: https://github.com/actions/runner-images/issues/10893
- name: windows-2019 - Update old Python
if: matrix.os == 'windows-2019'
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}

python-version: "${{ matrix.python-version }}"
- name: Install uv
run: |
python -m pip install -r https://raw.githubusercontent.com/kdeldycke/workflows/v4.9.0/requirements/uv.txt
- name: Install project
run: |
uv --no-progress venv
uv --no-progress venv --python ${{ matrix.python-version }}
uv --no-progress sync --frozen --extra test --extra pytest
- name: Unittests
Expand Down

0 comments on commit e1474d3

Please sign in to comment.