Skip to content

Commit

Permalink
fix(ci): cache-dependency-glob
Browse files Browse the repository at this point in the history
  • Loading branch information
SauravMaheshkar authored Oct 15, 2024
1 parent 8dd99cc commit 73be07f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,11 @@ on:
branches: [main]
paths:
- "**.py"
- ".devcontainer/requirements.txt"
- ".github/workflows/python.yml"
pull_request:
branches: [main]
paths:
- "**.py"
- ".devcontainer/requirements.txt"
- ".github/workflows/python.yml"
release:
types: [created]
Expand All @@ -24,7 +22,7 @@ jobs:

strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest]

steps:
Expand All @@ -34,7 +32,7 @@ jobs:
uses: astral-sh/setup-uv@v3
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
cache-dependency-glob: "pyproject.toml"

- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
Expand All @@ -47,4 +45,4 @@ jobs:
uv run ruff check jflux
- name: Test with PyTest
run: |
uv run pytest -v .
uv run pytest -v -s .

0 comments on commit 73be07f

Please sign in to comment.