Skip to content

Commit

Permalink
persist uv cache
Browse files Browse the repository at this point in the history
  • Loading branch information
oleflb committed Jan 18, 2025
1 parent f4136a3 commit 4240d8c
Showing 1 changed file with 33 additions and 5 deletions.
38 changes: 33 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,9 @@ jobs:
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.81.0
options: --user=1000:1000
defaults:
run:
working-directory: tools/machine-learning/mujoco
Expand All @@ -189,15 +192,22 @@ jobs:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Check Mujoco
with:
version: "0.5.21"
enable-cache: true
cache-local-path: "/__w/hulk/.uv-cache"
- name: Check
run: |
uv run ruff check
uv run ruff check --no-fix
test-mujoco:
name: Test Mujoco
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.81.0
options: --user=1000:1000
defaults:
run:
working-directory: tools/machine-learning/mujoco
Expand All @@ -208,7 +218,11 @@ jobs:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Check Mujoco
with:
version: "0.5.21"
enable-cache: true
cache-local-path: "/__w/hulk/.uv-cache"
- name: Test
run: |
uv run pytest
Expand All @@ -217,6 +231,9 @@ jobs:
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.81.0
options: --user=1000:1000
defaults:
run:
working-directory: tools/machine-learning/mujoco
Expand All @@ -227,7 +244,11 @@ jobs:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Check Mujoco
with:
version: "0.5.21"
enable-cache: true
cache-local-path: "/__w/hulk/.uv-cache"
- name: Format
run: |
uv run ruff format --check
Expand All @@ -236,6 +257,9 @@ jobs:
runs-on:
- self-hosted
- v3
container:
image: ghcr.io/hulks/hulk-ci:1.81.0
options: --user=1000:1000
defaults:
run:
working-directory: tools/machine-learning/mujoco
Expand All @@ -246,6 +270,10 @@ jobs:
lfs: true
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Check Mujoco
with:
version: "0.5.21"
enable-cache: true
cache-local-path: "/__w/hulk/.uv-cache"
- name: Check Lockfile
run: |
uv sync --locked

0 comments on commit 4240d8c

Please sign in to comment.