Skip to content

Commit 6e6f035

Browse files
committed
WIP
1 parent ebbe1e0 commit 6e6f035

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

.github/workflows/lint-and-test.yml

+12-9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
permissions:
1717
contents: read
1818

19+
env:
20+
LINTING_PYTHON_VERSION: 3.7
21+
1922
jobs:
2023
mypy:
2124
runs-on: ubuntu-latest
@@ -26,7 +29,7 @@ jobs:
2629
persist-credentials: false
2730
- uses: actions/setup-python@v5
2831
with:
29-
python-version: 3.8
32+
python-version: $LINTING_PYTHON_VERSION
3033
cache: 'pip'
3134
cache-dependency-path: 'setup.py'
3235
- name: Install with type-checking tools, stubs & minimal test libraries
@@ -43,7 +46,7 @@ jobs:
4346
persist-credentials: false
4447
- uses: actions/setup-python@v5
4548
with:
46-
python-version: 3.7
49+
python-version: $LINTING_PYTHON_VERSION
4750
cache: 'pip'
4851
cache-dependency-path: 'setup.py'
4952
- name: Install with linting tools
@@ -60,7 +63,7 @@ jobs:
6063
persist-credentials: false
6164
- uses: actions/setup-python@v5
6265
with:
63-
python-version: 3.7
66+
python-version: $LINTING_PYTHON_VERSION
6467
cache: 'pip'
6568
cache-dependency-path: 'setup.py'
6669
- name: Install with linting tools & minimal test libraries
@@ -78,7 +81,7 @@ jobs:
7881
persist-credentials: false
7982
- uses: actions/setup-python@v5
8083
with:
81-
python-version: 3.7
84+
python-version: $LINTING_PYTHON_VERSION
8285
cache: 'pip'
8386
cache-dependency-path: 'setup.py'
8487
- name: Install with linting tools
@@ -95,7 +98,7 @@ jobs:
9598
persist-credentials: false
9699
- uses: actions/setup-python@v5
97100
with:
98-
python-version: 3.7
101+
python-version: $LINTING_PYTHON_VERSION
99102
cache: 'pip'
100103
cache-dependency-path: 'setup.py'
101104
- name: Install with linting tools
@@ -112,7 +115,7 @@ jobs:
112115
persist-credentials: false
113116
- uses: actions/setup-python@v5
114117
with:
115-
python-version: 3.7
118+
python-version: $LINTING_PYTHON_VERSION
116119
cache: 'pip'
117120
cache-dependency-path: 'setup.py'
118121
- name: Minimal install
@@ -129,7 +132,7 @@ jobs:
129132
persist-credentials: false
130133
- uses: actions/setup-python@v5
131134
with:
132-
python-version: 3.7
135+
python-version: $LINTING_PYTHON_VERSION
133136
cache: 'pip'
134137
cache-dependency-path: 'setup.py'
135138
- name: Minimal install
@@ -154,7 +157,7 @@ jobs:
154157
- uses: actions/setup-python@v5
155158
if: github.event_name == 'pull_request'
156159
with:
157-
python-version: 3.7
160+
python-version: $LINTING_PYTHON_VERSION
158161
cache: 'pip'
159162
cache-dependency-path: 'setup.py'
160163
- name: Install with gitlint
@@ -215,7 +218,7 @@ jobs:
215218
- uses: actions/setup-python@v5
216219
if: github.event_name == 'pull_request'
217220
with:
218-
python-version: 3.7
221+
python-version: $LINTING_PYTHON_VERSION
219222
cache: 'pip'
220223
cache-dependency-path: 'setup.py'
221224
- name: Run check-branch

0 commit comments

Comments
 (0)