noahsettersten commited on
Commit
38f177d
1 Parent(s): 4687df9

ci: Cache Bumblebee model files

Browse files
Files changed (1) hide show
  1. .github/workflows/test.yml +21 -0
.github/workflows/test.yml CHANGED
@@ -35,6 +35,11 @@ jobs:
35
  - name: Install ffmpeg
36
  run: sudo apt-get install ffmpeg
37
 
 
 
 
 
 
38
  - name: Set up Elixir
39
  uses: erlef/setup-beam@v1
40
  with:
@@ -51,7 +56,23 @@ jobs:
51
  - name: Install dependencies
52
  run: mix deps.get
53
 
 
 
 
 
 
 
 
 
 
 
54
  - name: Run tests
55
  env:
56
  DATABASE_URL: postgresql://postgres:postgres@localhost/medical_transcription_test
57
  run: mix test
 
 
 
 
 
 
 
35
  - name: Install ffmpeg
36
  run: sudo apt-get install ffmpeg
37
 
38
+ # - name: Download Bumblebee model artifacts
39
+ # uses: actions/download-artifacts
40
+ # with:
41
+ # name: bumblebee-cache
42
+
43
  - name: Set up Elixir
44
  uses: erlef/setup-beam@v1
45
  with:
 
56
  - name: Install dependencies
57
  run: mix deps.get
58
 
59
+ - name: Print out Bumblebee cache directory
60
+ run: elixir -e 'IO.puts(:filename.basedir(:user_cache, "bumblebee"))'
61
+
62
+ - name: Cache Bumblebee model files
63
+ uses: actions/cache@v3
64
+ with:
65
+ path: /home/runner/.cache/bumblebee
66
+ key: ${{ runner.os }}-bumblebee-${{ hashFiles('**/application.ex') }}
67
+ restore-keys: ${{ runner.os }}-bumblebee-
68
+
69
  - name: Run tests
70
  env:
71
  DATABASE_URL: postgresql://postgres:postgres@localhost/medical_transcription_test
72
  run: mix test
73
+
74
+ # - name: Upload Bumblebee model artifacts
75
+ # uses: actions/upload-artifact@v4
76
+ # with:
77
+ # name: bumblebee-cache
78
+ # path: $HOME/.cache/bumblebee