|
8 | 8 | pull_request: ~ |
9 | 9 |
|
10 | 10 | env: |
11 | | - CACHE_VERSION: 1 |
| 11 | + CACHE_VERSION: 2 |
12 | 12 | DEFAULT_PYTHON: 3.8 |
13 | 13 | LIB_FOLDER: python_typing_update |
14 | 14 | PRE_COMMIT_CACHE: ~/.cache/pre-commit |
@@ -43,16 +43,14 @@ jobs: |
43 | 43 | key: >- |
44 | 44 | ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ |
45 | 45 | steps.generate-python-key.outputs.key }} |
46 | | - restore-keys: | |
47 | | - ${{ runner.os }}-${{ steps.python.outputs.python-version }}-base-venv-${{ env.CACHE_VERSION }}- |
48 | 46 | - name: Create Python virtual environment |
49 | 47 | if: steps.cache-venv.outputs.cache-hit != 'true' |
50 | 48 | run: | |
51 | 49 | python -m venv venv |
52 | 50 | . venv/bin/activate |
53 | 51 | python -m pip install -U pip setuptools wheel |
54 | | - pip install -U -r requirements_test.txt |
55 | | - pip install -e . |
| 52 | + pip install -U -r requirements.txt -r requirements_test.txt |
| 53 | + pip install . |
56 | 54 | - name: Generate pre-commit restore key |
57 | 55 | id: generate-pre-commit-key |
58 | 56 | run: >- |
|
65 | 63 | path: ${{ env.PRE_COMMIT_CACHE }} |
66 | 64 | key: >- |
67 | 65 | ${{ runner.os }}-${{ steps.generate-pre-commit-key.outputs.key }} |
68 | | - restore-keys: | |
69 | | - ${{ runner.os }}-pre-commit-${{ env.CACHE_VERSION }}- |
70 | 66 | - name: Install pre-commit dependencies |
71 | 67 | if: steps.cache-precommit.outputs.cache-hit != 'true' |
72 | 68 | run: | |
@@ -204,16 +200,14 @@ jobs: |
204 | 200 | key: >- |
205 | 201 | ${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{ |
206 | 202 | steps.generate-python-key.outputs.key }} |
207 | | - restore-keys: | |
208 | | - ${{ runner.os }}-${{ steps.python.outputs.python-version }}-venv-${{ env.CACHE_VERSION }}- |
209 | 203 | - name: Create Python virtual environment |
210 | 204 | if: steps.cache-venv.outputs.cache-hit != 'true' |
211 | 205 | run: | |
212 | 206 | python -m venv venv |
213 | 207 | . venv/bin/activate |
214 | 208 | python -m pip install -U pip setuptools wheel |
215 | | - pip install -U -r requirements_test.txt |
216 | | - pip install -e . |
| 209 | + pip install -U -r requirements.txt -r requirements_test.txt |
| 210 | + pip install . |
217 | 211 | - name: Run pytest |
218 | 212 | run: | |
219 | 213 | . venv/bin/activate |
|
0 commit comments