@@ -31,18 +31,20 @@ jobs:
31
31
strategy :
32
32
matrix :
33
33
python_version :
34
- - " 3.8.18 "
35
- - " 3.9.18 "
36
- - " 3.10.13 "
34
+ - " 3.8"
35
+ - " 3.9"
36
+ - " 3.10"
37
37
38
38
steps :
39
39
- name : Check Out VCS Repository
40
40
41
41
42
42
- name : Set Up Python ${{ matrix.python_version }}
43
+ id : set_up_python
43
44
44
45
with :
45
46
python-version : " ${{ matrix.python_version }}"
47
+ check-latest : true
46
48
47
49
- name : Create Python Virtual Environment
48
50
run : make python-virtualenv PYTHON_VIRTUALENV_DIR=".pyenv"
51
53
52
54
with :
53
55
path : " .pyenv"
54
- key : py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
56
+ key : py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
55
57
56
58
- name : Install Dependencies
57
59
run : |
@@ -72,24 +74,26 @@ jobs:
72
74
strategy :
73
75
matrix :
74
76
python_version :
75
- - " 3.8.18 "
76
- - " 3.9.18 "
77
- - " 3.10.13 "
77
+ - " 3.8"
78
+ - " 3.9"
79
+ - " 3.10"
78
80
79
81
steps :
80
82
- name : Check Out VCS Repository
81
83
82
84
83
85
- name : Set Up Python ${{ matrix.python_version }}
86
+ id : set_up_python
84
87
85
88
with :
86
89
python-version : " ${{ matrix.python_version }}"
90
+ check-latest : true
87
91
88
92
- name : Restoring/Saving Cache
89
93
90
94
with :
91
95
path : " .pyenv"
92
- key : py-v1-deps-${{ runner.os }}-${{ matrix.python_version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
96
+ key : py-v1-deps-${{ runner.os }}-${{ steps.set_up_python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}-${{ hashFiles('Makefile', 'make/**.mk') }}
93
97
fail-on-cache-miss : true
94
98
95
99
- name : Set Tox Environment
@@ -133,7 +137,7 @@ jobs:
133
137
134
138
- name : Check that compiled Python dependency manifests are up-to-date with their sources
135
139
# FIXME: There are issues related to testing with multiple Python versions.
136
- if : ${{ startsWith(matrix.python_version , '3.8.') }}
140
+ if : ${{ startsWith(steps.set_up_python.outputs.python-version , '3.8.') }}
137
141
run : |
138
142
source "$PYTHON_VIRTUALENV_ACTIVATE"
139
143
make python-deps-sync-check
0 commit comments