Skip to content

Commit 380d7b9

Browse files
authored
Add CI (#3)
1 parent 6afbf0b commit 380d7b9

5 files changed

Lines changed: 52 additions & 6 deletions

File tree

.dvc/config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[core]
22
remote = calkit
3+
autostage = true
34
['remote "calkit"']
45
url = https://api.calkit.io/projects/calkit/example-basic/dvc
56
auth = custom

.github/workflows/run.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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+
- name: Setup Miniforge
19+
uses: conda-incubator/setup-miniconda@v3
20+
with:
21+
miniforge-version: latest
22+
auto-activate-base: true
23+
conda-remove-defaults: true
24+
- run: pip install calkit-python
25+
- name: Restore DVC cache
26+
id: cache-dvc-restore
27+
uses: actions/cache/restore@v4
28+
with:
29+
path: .dvc/cache
30+
key: ${{ runner.os }}-dvc-cache
31+
- run: calkit config remote-auth
32+
env:
33+
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
34+
- run: dvc pull
35+
- run: calkit run
36+
- run: calkit save -am "Run pipeline"
37+
env:
38+
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
39+
- name: Save DVC cache
40+
id: cache-dvc-save
41+
uses: actions/cache/save@v4
42+
with:
43+
path: .dvc/cache
44+
key: ${{ steps.cache-dvc-restore.outputs.cache-primary-key }}

calkit.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description: A basic Calkit exmple project.
55
git_repo_url: https://github.com/calkit/example-basic
66
dependencies:
77
- docker
8-
- mamba
8+
- conda
99
questions:
1010
- Can we make reproducibility simple?
1111
datasets:

dvc.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ stages:
6060
nfiles: 2
6161
- path: paper/paper.tex
6262
hash: md5
63-
md5: af281fec490bfff26b5954baa2e177d6
64-
size: 577
63+
md5: 6455fc859c8b1838f22d5ac74223b323
64+
size: 604
6565
outs:
6666
- path: paper/paper.pdf
6767
hash: md5
68-
md5: 272ef20d54a4c536be5a92693164a735
69-
size: 92833
68+
md5: 6f1fec0754597ecdb78cf0e9852884ad
69+
size: 92860

paper/paper.tex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ \section{Section 1}
3535

3636
\pagebreak
3737
\section{Section 2}
38-
Lorem Ipsum \\
38+
39+
This is the second section of the paper.
3940

4041
%--/Paper--
4142

0 commit comments

Comments
 (0)