Skip to content

Commit 3364e08

Browse files
committed
Try to add jedi cache
1 parent 2ecd1b7 commit 3364e08

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/job.test.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,15 @@ jobs:
107107
- name: Install python wheel
108108
run: cd dist && python -m pip install jupyter_lsp-${{ env.PY_JLSP_VERSION }}-py3-none-any.whl --no-deps
109109

110+
- name: Find out jedi cache location
111+
run: python -c 'import jedi; print("::set-env name=JEDI_CACHE_DIR::" + jedi.settings.cache_directory)'
112+
113+
- name: Cache jedi cache
114+
uses: actions/cache@v1
115+
with:
116+
path: ${{ env.JEDI_CACHE_DIR }}
117+
key: jedi-${{ matrix.os }}-${{ hashFiles('scripts/jedi_cache.py') }}-${{ hashFiles('requirements/github-actions.yml') }}
118+
110119
- name: Warm up jedi cache
111120
run: python scripts/jedi_cache.py
112121

scripts/jedi_cache.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
- When _using_ jedi for the first time, the cache gets
2222
created in `jedi.settings.cache_directory`, usually
2323
somewhere in $HOME.
24-
- As different libriraries are inspected by jedi, they get
24+
- As different libraries are inspected by jedi, they get
2525
added to the cache.
2626
- This is very slow, especially on windows, and cannot
2727
feasibly be cached, today.

0 commit comments

Comments
 (0)