File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -93,25 +93,18 @@ jobs:
9393 with :
9494 python-version : ${{ matrix.python-version }}
9595
96- - name : Set up JDK 16
97- uses : actions/setup-java@v4
98- with :
99- distribution : ' zulu'
100- java-version : ' 16'
101- if : runner.os == 'Linux'
102-
103- - name : Cache dependencies
96+ - name : Restore cached dependencies
10497 uses : actions/cache@v3
10598 id : restore-cache
10699 with :
107100 path : ${{ env.pythonLocation }}
108101 key : python-dependencies-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('requirements-ci.txt') }}-${{ env.pythonLocation }}
109102
110- - name : Install dependencies on cache miss
103+ - name : Install dependencies
111104 run : |
112- pip install --no-cache-dir -- upgrade pip
113- pip install --no-cache-dir -- upgrade --requirement requirements-ci.txt
114- if : steps.restore-cache.outputs.cache-hit != 'true'
105+ pip install --upgrade pip
106+ pip install --upgrade --requirement requirements-ci.txt
107+ # if: steps.restore-cache.outputs.cache-hit != 'true' # disabled due to a persistent issue with restoring cache on macos runner
115108
116109 - name : Use cached nltk data
117110 uses : actions/cache@v3
@@ -126,6 +119,13 @@ jobs:
126119 key : third_${{ hashFiles('tools/github_actions/third-party.sh') }}_${{ secrets.CACHE_VERSION }}
127120 if : runner.os == 'Linux'
128121
122+ - name : Set up JDK 16
123+ uses : actions/setup-java@v4
124+ with :
125+ distribution : ' zulu'
126+ java-version : ' 16'
127+ if : runner.os == 'Linux'
128+
129129 - name : Run pytest
130130 shell : bash
131131 run : |
You can’t perform that action at this time.
0 commit comments