Skip to content

Add CI #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Mar 9, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[core]
remote = calkit
autostage = true
['remote "calkit"']
url = https://api.calkit.io/projects/calkit/example-basic/dvc
auth = custom
44 changes: 44 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Run pipeline

on: push

permissions:
contents: write

jobs:
main:
name: Run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Configure Git credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
auto-activate-base: true
conda-remove-defaults: true
- run: pip install calkit-python
- name: Restore DVC cache
id: cache-dvc-restore
uses: actions/cache/restore@v4
with:
path: .dvc/cache
key: ${{ runner.os }}-dvc-cache
- run: calkit config remote-auth
env:
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
- run: dvc pull
- run: calkit run
- run: calkit save -am "Run pipeline"
env:
CALKIT_DVC_TOKEN: ${{ secrets.CALKIT_DVC_TOKEN }}
- name: Save DVC cache
id: cache-dvc-save
uses: actions/cache/save@v4
with:
path: .dvc/cache
key: ${{ steps.cache-dvc-restore.outputs.cache-primary-key }}
2 changes: 1 addition & 1 deletion calkit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: A basic Calkit exmple project.
git_repo_url: https://github.com/calkit/example-basic
dependencies:
- docker
- mamba
- conda
questions:
- Can we make reproducibility simple?
datasets:
Expand Down
8 changes: 4 additions & 4 deletions dvc.lock
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ stages:
nfiles: 2
- path: paper/paper.tex
hash: md5
md5: af281fec490bfff26b5954baa2e177d6
size: 577
md5: 6455fc859c8b1838f22d5ac74223b323
size: 604
outs:
- path: paper/paper.pdf
hash: md5
md5: 272ef20d54a4c536be5a92693164a735
size: 92833
md5: 6f1fec0754597ecdb78cf0e9852884ad
size: 92860
3 changes: 2 additions & 1 deletion paper/paper.tex
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ \section{Section 1}

\pagebreak
\section{Section 2}
Lorem Ipsum \\

This is the second section of the paper.

%--/Paper--

Expand Down
Loading