File tree Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Expand file tree Collapse file tree 1 file changed +19
-6
lines changed Original file line number Diff line number Diff line change 9
9
# Daily at 8:33
10
10
- cron : " 33 8 * * *"
11
11
12
+ env :
13
+ PIP_DISABLE_PIP_VERSION_CHECK : " 1"
14
+ PIP_NO_PYTHON_VERSION_WARNING : " 1"
15
+ PYTHON_LATEST : " 3.11"
16
+
12
17
jobs :
13
18
pre-commit :
14
19
runs-on : ubuntu-latest
15
20
steps :
16
21
- uses : actions/checkout@v3
17
22
- uses : actions/setup-python@v4
18
23
with :
19
- python-version : " 3.11 "
24
+ python-version : ${{ env.PYTHON_LATEST }}
20
25
-
uses :
pre-commit/[email protected]
21
26
22
27
ci :
23
28
runs-on : ubuntu-latest
24
29
25
30
steps :
31
+ - name : Harden Runner
32
+ uses : step-security/harden-runner@v2
33
+ with :
34
+ egress-policy : block
35
+ allowed-endpoints : >
36
+ api.github.com:443
37
+ files.pythonhosted.org:443
38
+ github.com:443
39
+ objects.githubusercontent.com:443
40
+ pypi.org:443
26
41
- uses : actions/checkout@v3
27
42
- name : Install dependencies
28
- run : >
29
- sudo apt-get update &&
30
- sudo apt-get install -y libenchant-2-dev libxml2-dev libxslt-dev
43
+ run : sudo apt-get update && sudo apt-get install -y libenchant-2-dev
31
44
if : runner.os == 'Linux'
32
45
- name : Install dependencies
33
46
run : brew install enchant
34
47
if : runner.os == 'macOS'
35
48
- name : Set up Python
36
49
uses : actions/setup-python@v4
37
50
with :
38
- python-version : " 3.11 "
51
+ python-version : ${{env.PYTHON_LATEST}}
39
52
- name : Set up nox
40
53
41
54
- name : Run nox
50
63
- name : Set up Python
51
64
uses : actions/setup-python@v4
52
65
with :
53
- python-version : " 3.11 "
66
+ python-version : ${{ env.PYTHON_LATEST }}
54
67
- name : Install dependencies
55
68
run : python -m pip install build
56
69
- name : Create packages
You can’t perform that action at this time.
0 commit comments