Skip to content

Commit

Permalink
ci: update pip install to use uv
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonsteiner committed Jan 6, 2025
1 parent c47186b commit 941698a
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 15 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,14 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: |
'../**/requirements*.txt'
'../**/setup.py'
- run: python -m pip install --upgrade setuptools pip tox virtualenv
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.py
**/requirements*.txt
- run: uv pip install --upgrade --system setuptools pip tox virtualenv
# Run tox only for the installed py version on the runner as outlined in the python matrix
# Ensures the correct py version is installed and tested as opposed to 'tox' which attempts to run for all py versions in tox.ini
- run: tox -e py
Expand Down
26 changes: 16 additions & 10 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,14 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
cache: 'pip'
cache-dependency-path: |
'../**/requirements*.txt'
'../**/setup.py'
- run: python -m pip install --upgrade setuptools pip tox virtualenv
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.py
**/requirements*.txt
- run: uv pip install --upgrade --system setuptools pip tox virtualenv
# Run tox only for the installed py version on the runner as outlined in the python matrix
# Ensures the correct py version is installed and tested as opposed to 'tox' which attempts to run for all py versions in tox.ini
- run: tox -e py
Expand All @@ -40,12 +43,15 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: 3.13
cache: 'pip'
cache-dependency-path: |
'../**/requirements*.txt'
'../**/setup.py'
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: |
**/setup.py
**/requirements*.txt
- name: Install dependencies
run: pip install wheel
run: uv pip --system --upgrade install wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish package
Expand Down

0 comments on commit 941698a

Please sign in to comment.