diff --git a/.dvc/config b/.dvc/config index e1e30f4..9cb9da2 100644 --- a/.dvc/config +++ b/.dvc/config @@ -1,5 +1,6 @@ [core] remote = calkit + autostage = true ['remote "calkit"'] url = https://api.calkit.io/projects/calkit/example-basic/dvc auth = custom diff --git a/.github/workflows/run.yml b/.github/workflows/run.yml new file mode 100644 index 0000000..612f442 --- /dev/null +++ b/.github/workflows/run.yml @@ -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 }} diff --git a/calkit.yaml b/calkit.yaml index 1d27315..1ce9cee 100644 --- a/calkit.yaml +++ b/calkit.yaml @@ -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: diff --git a/dvc.lock b/dvc.lock index 7128352..71d60c3 100644 --- a/dvc.lock +++ b/dvc.lock @@ -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 diff --git a/paper/paper.tex b/paper/paper.tex index d6e7549..d000666 100644 --- a/paper/paper.tex +++ b/paper/paper.tex @@ -35,7 +35,8 @@ \section{Section 1} \pagebreak \section{Section 2} -Lorem Ipsum \\ + +This is the second section of the paper. %--/Paper--