Skip to content

Commit ab42afe

Browse files
authored
Simplify to use Calkit run action (#9)
1 parent bb10c2b commit ab42afe

File tree

1 file changed

+3
-22
lines changed

1 file changed

+3
-22
lines changed

.github/workflows/run.yml

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,26 +33,7 @@ jobs:
3333
uses: astral-sh/setup-uv@v5
3434
- name: Install Calkit
3535
run: uv tool install calkit-python
36-
- name: Restore DVC cache
37-
id: cache-dvc-restore
38-
uses: actions/cache/restore@v4
36+
- name: Run Calkit
37+
uses: calkit/run-action@v1
3938
with:
40-
path: .dvc/cache
41-
key: ${{ runner.os }}-dvc-cache-${{ github.sha }}
42-
restore-keys: |
43-
${{ runner.os }}-dvc-cache-
44-
- run: calkit config remote-auth
45-
env:
46-
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
47-
- run: calkit dvc pull
48-
continue-on-error: true
49-
- run: calkit run
50-
- run: calkit save -am "Run pipeline"
51-
env:
52-
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
53-
- name: Save DVC cache
54-
id: cache-dvc-save
55-
uses: actions/cache/save@v4
56-
with:
57-
path: .dvc/cache
58-
key: ${{ runner.os }}-dvc-cache-${{ github.sha }}
39+
dvc_token: ${{ secrets.CALKIT_DVC_TOKEN }}

0 commit comments

Comments
 (0)