Spaces:
Running
Running
Jeremiah Lowin commited on
Commit ·
f3209f0
1
Parent(s): bef29e0
Add caching
Browse files
.github/workflows/run-static.yml
CHANGED
|
@@ -16,14 +16,17 @@ permissions:
|
|
| 16 |
|
| 17 |
jobs:
|
| 18 |
static_analysis:
|
| 19 |
-
timeout-minutes:
|
| 20 |
|
| 21 |
runs-on: ubuntu-latest
|
| 22 |
|
| 23 |
steps:
|
| 24 |
- uses: actions/checkout@v4
|
| 25 |
- name: Install uv
|
| 26 |
-
uses: astral-sh/setup-uv@
|
|
|
|
|
|
|
|
|
|
| 27 |
- name: Set up Python
|
| 28 |
uses: actions/setup-python@v5
|
| 29 |
with:
|
|
|
|
| 16 |
|
| 17 |
jobs:
|
| 18 |
static_analysis:
|
| 19 |
+
timeout-minutes: 2
|
| 20 |
|
| 21 |
runs-on: ubuntu-latest
|
| 22 |
|
| 23 |
steps:
|
| 24 |
- uses: actions/checkout@v4
|
| 25 |
- name: Install uv
|
| 26 |
+
uses: astral-sh/setup-uv@v5
|
| 27 |
+
with:
|
| 28 |
+
enable-cache: true
|
| 29 |
+
cache-dependency-glob: "uv.lock"
|
| 30 |
- name: Set up Python
|
| 31 |
uses: actions/setup-python@v5
|
| 32 |
with:
|
.github/workflows/run-tests.yml
CHANGED
|
@@ -35,12 +35,16 @@ jobs:
|
|
| 35 |
os: [ubuntu-latest, windows-latest, macos-latest]
|
| 36 |
python-version: ["3.10"]
|
| 37 |
fail-fast: false
|
|
|
|
| 38 |
|
| 39 |
steps:
|
| 40 |
- uses: actions/checkout@v4
|
| 41 |
|
| 42 |
- name: Install uv
|
| 43 |
-
uses: astral-sh/setup-uv@
|
|
|
|
|
|
|
|
|
|
| 44 |
|
| 45 |
- name: Set up Python ${{ matrix.python-version }}
|
| 46 |
run: uv python install ${{ matrix.python-version }}
|
|
|
|
| 35 |
os: [ubuntu-latest, windows-latest, macos-latest]
|
| 36 |
python-version: ["3.10"]
|
| 37 |
fail-fast: false
|
| 38 |
+
timeout-minutes: 5
|
| 39 |
|
| 40 |
steps:
|
| 41 |
- uses: actions/checkout@v4
|
| 42 |
|
| 43 |
- name: Install uv
|
| 44 |
+
uses: astral-sh/setup-uv@v5
|
| 45 |
+
with:
|
| 46 |
+
enable-cache: true
|
| 47 |
+
cache-dependency-glob: "uv.lock"
|
| 48 |
|
| 49 |
- name: Set up Python ${{ matrix.python-version }}
|
| 50 |
run: uv python install ${{ matrix.python-version }}
|