Skip to content

Commit

Permalink
Experiment with using uv and its cache
Browse files Browse the repository at this point in the history
  • Loading branch information
stumpylog committed Oct 9, 2024
1 parent 52a19ef commit 86de515
Showing 1 changed file with 24 additions and 11 deletions.
35 changes: 24 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ concurrency:
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
UV_PYTHON_DOWNLOADS: "never"
UV_PYTHON_PREFERENCE: "system"

jobs:
lint:
Expand All @@ -27,15 +29,19 @@ jobs:
-
name: Set up Python 3.10
uses: actions/setup-python@v5
id: py-setup
with:
python-version: '3.10'
python-version: '3.x'
cache: 'pip'
-
name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
-
name: Install Hatch
run: |
pip3 --quiet install --upgrade hatch uv
hatch --version
uv --version
uv tool install --python ${{ steps.py-setup.outputs.python-version }} hatch
-
name: Lint project
run: |
Expand Down Expand Up @@ -77,12 +83,15 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
-
name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
-
name: Install Hatch
run: |
pip3 --quiet install --upgrade hatch uv
hatch --version
uv --version
uv tool install --python ${{ steps.py-setup.outputs.python-version }} hatch
-
name: Show environment
run: |
Expand Down Expand Up @@ -119,15 +128,19 @@ jobs:
-
name: Set up Python 3.10
uses: actions/setup-python@v5
id: py-setup
with:
python-version: '3.10'
python-version: '3.x'
cache: 'pip'
-
name: Install uv
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
-
name: Install Hatch
run: |
pip3 --quiet install --upgrade hatch uv
hatch --version
uv --version
uv tool install --python ${{ steps.py-setup.outputs.python-version }} hatch
-
name: Build
run: |
Expand Down

0 comments on commit 86de515

Please sign in to comment.