Skip to content

Commit

Permalink
add cache
Browse files Browse the repository at this point in the history
  • Loading branch information
Paupiera committed Jan 10, 2024
1 parent cd218d9 commit 265753d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/cml.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
name: DVC & train-my-model
name: train-my-model
on: [push]
jobs:
run:
runs-on: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- uses: iterative/setup-dvc@v1
- name: Train model & download data
- name: Train model
run: |
pip install -r requirements.txt # install dependencies
dvc pull data --run-cache
python cnn_mnist/train_cml.py # run training
- name: Write report
env:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/cml_dvc_cache.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: iterative/setup-cml@v1
- uses: iterative/setup-dvc@v1

- name: Get pip cache dir
id: pip-cache
Expand All @@ -32,9 +31,11 @@ jobs:
pip install -r requirements.txt
pip install -r requirements_tests.txt
- name: Download data
run: |
dvc pull data
- uses: iterative/setup-dvc@v1
- name: Get data
run: dvc pull
env:
GDRIVE_CREDENTIALS_DATA: ${{ secrets.GDRIVE_CREDENTIALS_DATA }}

- name: Train model
run: |
Expand Down

0 comments on commit 265753d

Please sign in to comment.