Skip to content

Commit

Permalink
🐛 Update UV Cache github action
Browse files Browse the repository at this point in the history
  • Loading branch information
yezz123 committed Aug 25, 2024
1 parent e5d91ff commit e1453af
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,11 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
uv-version: ["0.3.0", "latest"]
python-version: ["3.10"]
uv-version: ["0.3.0", ""]
os: [macos-latest, ubuntu-latest, windows-latest]
cache: [true, false]
venv-name: [".venv"]
fail-fast: true

steps:
Expand All @@ -40,7 +41,7 @@ jobs:
- uses: ./
with:
uv-version: ${{ matrix.uv-version }}
uv-venv: "my_virt_env"
uv-venv: ${{ matrix.venv-name }}
uv-cache: ${{ matrix.cache }}
- run: uv --version
- name: Get python executable on Windows
Expand All @@ -58,9 +59,6 @@ jobs:
- name: Install Pydantic and Ruff
run: |
uv add pydantic ruff
- name: Verify installed packages
run: |
python -c "import pydantic, ruff; print('Packages installed successfully')"
- name: Check cache directory (non-Windows)
if: runner.os != 'Windows' && matrix.cache == 'true'
run: |
Expand Down

0 comments on commit e1453af

Please sign in to comment.