77
88env :
99 CACHE_VERSION : 1
10- DEFAULT_PYTHON : 3.7
10+ DEFAULT_PYTHON : 3.8
1111 PRE_COMMIT_HOME : ~/.cache/pre-commit
1212
1313jobs :
1818 runs-on : ubuntu-latest
1919 strategy :
2020 matrix :
21- python-version : [3.7 , 3.8, 3.9 ]
21+ python-version : [3.8 , 3.9, "3.10" ]
2222 steps :
2323 - name : Check out code from GitHub
2424 uses : actions/checkout@v2
3535 key : >-
3636 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
3737 steps.python.outputs.python-version }}-${{
38- hashFiles('requirements_test.txt') }}
38+ hashFiles('requirements_test.txt', 'setup.py' ) }}
3939 restore-keys : |
4040 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
4141 - name : Create Python virtual environment
6767 key : >-
6868 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
6969 steps.python.outputs.python-version }}-${{
70- hashFiles('requirements_test.txt') }}
70+ hashFiles('requirements_test.txt', 'setup.py' ) }}
7171 - name : Fail job if Python cache restore failed
7272 if : steps.cache-venv.outputs.cache-hit != 'true'
7373 run : |
@@ -108,7 +108,7 @@ jobs:
108108 key : >-
109109 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
110110 steps.python.outputs.python-version }}-${{
111- hashFiles('requirements_test.txt') }}
111+ hashFiles('requirements_test.txt', 'setup.py' ) }}
112112 - name : Fail job if Python cache restore failed
113113 if : steps.cache-venv.outputs.cache-hit != 'true'
114114 run : |
@@ -151,7 +151,7 @@ jobs:
151151 key : >-
152152 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
153153 steps.python.outputs.python-version }}-${{
154- hashFiles('requirements_test.txt') }}
154+ hashFiles('requirements_test.txt', 'setup.py' ) }}
155155 - name : Fail job if Python cache restore failed
156156 if : steps.cache-venv.outputs.cache-hit != 'true'
157157 run : |
@@ -197,7 +197,7 @@ jobs:
197197 key : >-
198198 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
199199 steps.python.outputs.python-version }}-${{
200- hashFiles('requirements_test.txt') }}
200+ hashFiles('requirements_test.txt', 'setup.py' ) }}
201201 - name : Fail job if Python cache restore failed
202202 if : steps.cache-venv.outputs.cache-hit != 'true'
203203 run : |
@@ -240,7 +240,7 @@ jobs:
240240 key : >-
241241 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
242242 steps.python.outputs.python-version }}-${{
243- hashFiles('requirements_test.txt') }}
243+ hashFiles('requirements_test.txt', 'setup.py' ) }}
244244 - name : Fail job if Python cache restore failed
245245 if : steps.cache-venv.outputs.cache-hit != 'true'
246246 run : |
@@ -271,7 +271,7 @@ jobs:
271271 needs : prepare-base
272272 strategy :
273273 matrix :
274- python-version : [3.7 , 3.8, 3.9 ]
274+ python-version : [3.8 , 3.9, "3.10" ]
275275 name : >-
276276 Run tests Python ${{ matrix.python-version }}
277277 steps :
@@ -290,7 +290,7 @@ jobs:
290290 key : >-
291291 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
292292 steps.python.outputs.python-version }}-${{
293- hashFiles('requirements_test.txt') }}
293+ hashFiles('requirements_test.txt', 'setup.py' ) }}
294294 - name : Fail job if Python cache restore failed
295295 if : steps.cache-venv.outputs.cache-hit != 'true'
296296 run : |
@@ -353,7 +353,7 @@ jobs:
353353 key : >-
354354 ${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
355355 steps.python.outputs.python-version }}-${{
356- hashFiles('requirements_test.txt') }}
356+ hashFiles('requirements_test.txt', 'setup.py' ) }}
357357 - name : Fail job if Python cache restore failed
358358 if : steps.cache-venv.outputs.cache-hit != 'true'
359359 run : |
0 commit comments