Skip to content

Commit 2803673

Browse files
committed
Add Actions workflow to run pipeline
1 parent 6afbf0b commit 2803673

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/run.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Run pipeline
2+
3+
on: push
4+
5+
permissions:
6+
contents: write
7+
8+
jobs:
9+
main:
10+
name: Run
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Configure Git credentials
15+
run: |
16+
git config user.name github-actions[bot]
17+
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: "3.13"
21+
cache: pip
22+
- run: pip install calkit-python uv
23+
- name: Restore DVC cache
24+
id: cache-dvc-restore
25+
uses: actions/cache/restore@v4
26+
with:
27+
path: .dvc/cache
28+
key: ${{ runner.os }}-dvc-cache
29+
- run: calkit config remote-auth
30+
env:
31+
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
32+
- run: dvc pull
33+
- run: calkit run
34+
- run: calkit save -am "Run pipeline"
35+
env:
36+
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
37+
- name: Save DVC cache
38+
id: cache-dvc-save
39+
uses: actions/cache/save@v4
40+
with:
41+
path: .dvc/cache
42+
key: ${{ steps.cache-dvc-restore.outputs.cache-primary-key }}

0 commit comments

Comments
 (0)