This repository was archived by the owner on Aug 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +107
-108
lines changed Expand file tree Collapse file tree 9 files changed +107
-108
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,27 +15,44 @@ permissions:
15
15
jobs :
16
16
mise-cache :
17
17
uses : nikobockerman/github-workflows/.github/workflows/mise-prepare-cache.yaml@261e8683f0b52b7f6a9d91e2ea639a46f168ce8a
18
+ uv-cache :
19
+ needs : mise-cache
20
+ uses : ./.github/workflows/mise-uv-prepare-cache.yaml
18
21
check-mypy :
19
- uses : ./.github/workflows/check-mypy.yaml
22
+ needs : uv-cache
23
+ uses : ./.github/workflows/mise-uv-task.yaml
24
+ with :
25
+ task : check:mypy
20
26
check-prettier :
21
27
needs : mise-cache
22
28
uses : nikobockerman/github-workflows/.github/workflows/mise-task.yaml@261e8683f0b52b7f6a9d91e2ea639a46f168ce8a
23
29
with :
24
30
task : check:prettier
25
31
check-pyright :
26
- needs : mise-cache
27
- uses : ./.github/workflows/check-pyright.yaml
32
+ needs : uv-cache
33
+ uses : ./.github/workflows/mise-uv-task.yaml
34
+ with :
35
+ task : check:pyright
28
36
check-renovate-config :
29
37
needs : mise-cache
30
38
uses : nikobockerman/github-workflows/.github/workflows/mise-task.yaml@261e8683f0b52b7f6a9d91e2ea639a46f168ce8a
31
39
with :
32
40
task : check:renovateconfig
33
41
check-ruff :
34
- uses : ./.github/workflows/check-ruff.yaml
42
+ needs : mise-cache
43
+ uses : nikobockerman/github-workflows/.github/workflows/mise-task.yaml@261e8683f0b52b7f6a9d91e2ea639a46f168ce8a
44
+ with :
45
+ task : " check:ruff ::: check:ruff::format"
35
46
test-pytest :
36
- uses : ./.github/workflows/test-pytest.yaml
47
+ needs : uv-cache
48
+ uses : ./.github/workflows/mise-uv-task.yaml
49
+ with :
50
+ task : check:pytest
37
51
run-all :
38
- uses : ./.github/workflows/run-all.yaml
52
+ needs : uv-cache
53
+ uses : ./.github/workflows/mise-uv-task.yaml
54
+ with :
55
+ task : runall
39
56
40
57
check :
41
58
needs :
Original file line number Diff line number Diff line change
1
+ name : Mise + uv - prepare cache
2
+ on :
3
+ workflow_call :
4
+ permissions :
5
+ contents : read
6
+
7
+ jobs :
8
+ prepare-cache :
9
+ name : Prepare uv cache
10
+ runs-on : ubuntu-latest
11
+ timeout-minutes : 30
12
+ steps :
13
+ - name : Prepare
14
+ id : prepare
15
+ env :
16
+ RUNNER_TEMP : ${{ runner.temp }}
17
+ run : |
18
+ echo "UV_CACHE_DIR=${RUNNER_TEMP}/uv-cache" >> "$GITHUB_OUTPUT"
19
+ - name : Checkout
20
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
21
+ - name : Setup mise
22
+ uses : nikobockerman/github-actions/.github/actions/mise-project-setup@e016a979d6e455bb4023977985040870b466cace
23
+ - name : uv cache
24
+ uses : actions/cache@v4 # TODO: Pin to digest and comment version
25
+ with :
26
+ path : |
27
+ ${{ steps.prepare.outputs.UV_CACHE_DIR }}
28
+ .venv
29
+ key : uv-${{ hashFiles('uv.lock') }}
30
+ restore-keys : |
31
+ uv-
32
+ - name : Install uv dependencies
33
+ env :
34
+ UV_CACHE_DIR : ${{ steps.prepare.outputs.UV_CACHE_DIR }}
35
+ run : uv sync --locked --no-install-project
36
+ - name : Minimize uv cache
37
+ env :
38
+ UV_CACHE_DIR : ${{ steps.prepare.outputs.UV_CACHE_DIR }}
39
+ run : uv cache prune --ci
Original file line number Diff line number Diff line change
1
+ name : Mise + uv - run task
2
+ on :
3
+ workflow_call :
4
+ inputs :
5
+ task :
6
+ description : Task to run
7
+ required : true
8
+ type : string
9
+ permissions :
10
+ contents : read
11
+
12
+ jobs :
13
+ task :
14
+ name : Run mise task with uv - ${{ inputs.task }}
15
+ runs-on : ubuntu-latest
16
+ timeout-minutes : 30
17
+ steps :
18
+ - name : Prepare
19
+ id : prepare
20
+ env :
21
+ RUNNER_TEMP : ${{ runner.temp }}
22
+ run : |
23
+ echo "UV_CACHE_DIR=${RUNNER_TEMP}/uv-cache" >> "$GITHUB_OUTPUT"
24
+ - name : Checkout
25
+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
26
+ - name : Setup mise
27
+ uses : nikobockerman/github-actions/.github/actions/mise-project-setup@e016a979d6e455bb4023977985040870b466cace
28
+ - name : Restore uv cache
29
+ uses : actions/cache/restore@v4 # TODO: Pin to digest and comment version
30
+ with :
31
+ fail-on-cache-miss : true
32
+ key : uv-${{ hashFiles('uv.lock') }}
33
+ path : |
34
+ ${{ steps.prepare.outputs.UV_CACHE_DIR }}
35
+ .venv
36
+ - name : Ensure complete cache restore
37
+ env :
38
+ UV_CACHE_DIR : ${{ steps.prepare.outputs.UV_CACHE_DIR }}
39
+ run : uv sync --check --no-install-project
40
+ - name : Install project
41
+ env :
42
+ UV_CACHE_DIR : ${{ steps.prepare.outputs.UV_CACHE_DIR }}
43
+ run : uv sync --locked --offline
44
+ - name : Run task - ${{ inputs.task }}
45
+ run : mise run ${{ inputs.task }}
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments