Add Actions workflow to run pipeline #1
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: pip | |
- run: pip install calkit-python uv | |
- 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 }} |