File tree Expand file tree Collapse file tree 7 files changed +18
-12
lines changed Expand file tree Collapse file tree 7 files changed +18
-12
lines changed Original file line number Diff line number Diff line change 37
37
run : >-
38
38
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
39
39
hashFiles('pyproject.toml', 'requirements_test.txt',
40
- 'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
40
+ 'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
41
+ $GITHUB_OUTPUT
41
42
- name : Restore Python virtual environment
42
43
id : cache-venv
43
44
uses : actions/cache@v3.2.4
Original file line number Diff line number Diff line change 45
45
run : >-
46
46
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
47
47
hashFiles('pyproject.toml', 'requirements_test.txt',
48
- 'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
48
+ 'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
49
+ $GITHUB_OUTPUT
49
50
- name : Restore Python virtual environment
50
51
id : cache-venv
51
52
uses : actions/cache@v3.2.4
Original file line number Diff line number Diff line change 47
47
run : >-
48
48
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
49
49
hashFiles('pyproject.toml', 'requirements_test.txt',
50
- 'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
50
+ 'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
51
+ $GITHUB_OUTPUT
51
52
- name : Restore Python virtual environment
52
53
id : cache-venv
53
54
uses : actions/cache@v3.2.4
Original file line number Diff line number Diff line change 49
49
key :
50
50
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
51
51
env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{ hashFiles('pyproject.toml',
52
- ' requirements_test.txt' , 'requirements_test_min.txt') }}
52
+ ' requirements_test.txt' , 'requirements_test_min.txt',
53
+ ' requirements_test_pre_commit.txt' ) }}
53
54
- name : Create Python virtual environment
54
55
if : steps.cache-venv.outputs.cache-hit != 'true'
55
56
run : |
Original file line number Diff line number Diff line change 60
60
key :
61
61
${{ runner.os }}-${{ steps.python.outputs.python-version }}-${{
62
62
env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{ hashFiles('pyproject.toml',
63
- ' requirements_test.txt' , 'requirements_test_min.txt') }}
63
+ ' requirements_test.txt' , 'requirements_test_min.txt',
64
+ ' requirements_test_pre_commit.txt' ) }}
64
65
# Create environment must match step in 'Primer / Main'
65
66
- name : Create Python virtual environment
66
67
if : steps.cache-venv.outputs.cache-hit != 'true'
Original file line number Diff line number Diff line change 13
13
- " maintenance/**"
14
14
15
15
env :
16
- CACHE_VERSION : 1
16
+ CACHE_VERSION : 2
17
17
KEY_PREFIX : venv
18
18
19
19
permissions :
44
44
run : >-
45
45
echo "key=${{ env.KEY_PREFIX }}-${{ env.CACHE_VERSION }}-${{
46
46
hashFiles('pyproject.toml', 'requirements_test.txt',
47
- 'requirements_test_min.txt') }}" >> $GITHUB_OUTPUT
47
+ 'requirements_test_min.txt', 'requirements_test_pre_commit.txt') }}" >>
48
+ $GITHUB_OUTPUT
48
49
- name : Restore Python virtual environment
49
50
id : cache-venv
50
51
uses : actions/cache@v3.2.4
@@ -250,7 +251,7 @@ jobs:
250
251
python -m venv venv
251
252
. venv/bin/activate
252
253
python -m pip install -U pip setuptools wheel
253
- pip install -U -r requirements_test .txt
254
+ pip install -U -r requirements_test_min .txt
254
255
- name : Run pytest
255
256
run : |
256
257
. venv/bin/activate
Original file line number Diff line number Diff line change 2
2
# in .pre-commit-config.yaml
3
3
bandit==1.7.4
4
4
black==23.1a1
5
- flake8>=5 .0.0
6
- flake8-bugbear==23.1.20
7
- flake8-typing-imports==1.14.0
8
- isort==5.12.0
5
+ flake8==6 .0.0;python_version>='3.8'
6
+ flake8-bugbear==23.1.20;python_version>='3.8'
7
+ flake8-typing-imports==1.14.0;python_version>='3.8'
8
+ isort==5.12.0;python_version>='3.8'
9
9
mypy==0.991
You can’t perform that action at this time.
0 commit comments