Skip to content

Commit cf7a838

Browse files
committed
Fix CI: Use $HOME instead of ~ for spaCy model path
1 parent 6440121 commit cf7a838

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,13 +47,13 @@ jobs:
4747
if: steps.cache-spacy-model.outputs.cache-hit != 'true'
4848
run: |
4949
python -m spacy download en_core_web_sm
50-
mkdir -p ~/spacy_data
51-
python -c "import spacy; nlp = spacy.load('en_core_web_sm'); nlp.to_disk('~/spacy_data/en_core_web_sm')"
50+
mkdir -p $HOME/spacy_data
51+
python -c "import spacy; nlp = spacy.load('en_core_web_sm'); nlp.to_disk('$HOME/spacy_data/en_core_web_sm')"
5252
5353
- name: Link cached spaCy model
5454
if: steps.cache-spacy-model.outputs.cache-hit == 'true'
5555
run: |
56-
python -m spacy link ~/spacy_data/en_core_web_sm en_core_web_sm --force
56+
python -m spacy link $HOME/spacy_data/en_core_web_sm en_core_web_sm --force
5757
5858
- name: Run Black check
5959
run: |

0 commit comments

Comments
 (0)