File tree 10 files changed +122
-76
lines changed
template/{% if repo_platform == 'github' %}.github{% endif %}/workflows
10 files changed +122
-76
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
9
+ permissions :
10
+ contents : read
11
+
9
12
concurrency :
10
13
cancel-in-progress : true
11
14
group : ${{ github.workflow }}-${{ github.ref }}
@@ -42,11 +45,11 @@ jobs:
42
45
# renovate: github-runner
43
46
- windows-2025
44
47
python-version :
45
- - ' 3.9'
46
- - ' 3.10'
47
- - ' 3.11'
48
- - ' 3.12'
49
- - ' 3.13'
48
+ - " 3.9"
49
+ - " 3.10"
50
+ - " 3.11"
51
+ - " 3.12"
52
+ - " 3.13"
50
53
consistency :
51
54
if : ${{ !cancelled() && ! failure() }}
52
55
runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change 1
1
name : CommitLint
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - synchronize
8
+ - reopened
9
+ - edited
10
+ push :
11
+ branches :
12
+ - main
13
+
14
+ permissions :
15
+ contents : read
16
+
2
17
concurrency :
3
18
cancel-in-progress : true
4
19
group : ${{ github.workflow }}-${{ github.ref }}
20
+
5
21
jobs :
6
22
commitlint :
7
23
container :
15
31
- name : Validate pull request title with commitlint
16
32
if : github.event_name == 'pull_request'
17
33
run : echo "${{ github.event.pull_request.title }}" | npx commitlint -x @commitlint/config-conventional
18
- on :
19
- pull_request :
20
- types :
21
- - opened
22
- - synchronize
23
- - reopened
24
- - edited
25
- push :
26
- branches :
27
- - main
Original file line number Diff line number Diff line change 1
1
name : Read the Docs Pull Request Preview
2
- concurrency :
3
- cancel-in-progress : true
4
- group : ${{ github.workflow }}-${{ github.ref }}
5
- jobs :
6
- documentation-links :
7
- runs-on : ubuntu-24.04
8
- steps :
9
- - name : Add Read the Docs preview's link to pull request
10
- uses : readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
11
- with :
12
- project-slug : ss-python
2
+
13
3
on :
14
4
pull_request_target :
15
5
types :
22
12
- docs/**
23
13
- pdm.dev.lock
24
14
- pdm.lock
15
+
25
16
permissions :
26
17
pull-requests : write
18
+
19
+ concurrency :
20
+ cancel-in-progress : true
21
+ group : ${{ github.workflow }}-${{ github.ref }}
22
+
23
+ jobs :
24
+ documentation-links :
25
+ runs-on : ubuntu-24.04
26
+ steps :
27
+ - name : Add Read the Docs preview's link to pull request
28
+ uses : readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
29
+ with :
30
+ project-slug : ss-python
Original file line number Diff line number Diff line change 5
5
types :
6
6
- published
7
7
8
+ permissions :
9
+ contents : read
10
+
8
11
concurrency :
9
12
cancel-in-progress : true
10
13
group : ${{ github.workflow }}-${{ github.ref }}
21
24
uses : pdm-project/setup-pdm@deb8d8a4e2a03aabcef6f2cc981923fc6b29ef99 # v4.3
22
25
with :
23
26
cache : true
24
- python-version : ' 3.12'
27
+ python-version : " 3.12"
25
28
version : 2.24.1
26
29
cache-dependency-path : |
27
30
./pdm.dev.lock
@@ -111,11 +114,11 @@ jobs:
111
114
strategy :
112
115
matrix :
113
116
python-version :
114
- - ' 3.9'
115
- - ' 3.10'
116
- - ' 3.11'
117
- - ' 3.12'
118
- - ' 3.13'
117
+ - " 3.9"
118
+ - " 3.10"
119
+ - " 3.11"
120
+ - " 3.12"
121
+ - " 3.13"
119
122
package-publish :
120
123
runs-on : ubuntu-24.04
121
124
permissions :
@@ -128,7 +131,7 @@ jobs:
128
131
uses : pdm-project/setup-pdm@deb8d8a4e2a03aabcef6f2cc981923fc6b29ef99 # v4.3
129
132
with :
130
133
cache : true
131
- python-version : ' 3.12'
134
+ python-version : " 3.12"
132
135
version : 2.24.1
133
136
cache-dependency-path : |
134
137
./pdm.dev.lock
Original file line number Diff line number Diff line change 1
1
name : Renovate
2
+
3
+ on :
4
+ schedule :
5
+ # * is a special character in YAML so you have to quote this string
6
+ - cron : " */15 0-3 * * 1"
7
+ workflow_dispatch : null
8
+
9
+ permissions :
10
+ contents : read
11
+ issues : write
12
+ pull-requests : write
13
+
2
14
jobs :
3
15
renovate :
4
16
container :
46
58
else
47
59
renovate $RENOVATE_EXTRA_FLAG
48
60
fi
49
- on :
50
- schedule :
51
- # * is a special character in YAML so you have to quote this string
52
- - cron : " */15 0-3 * * 1"
53
- workflow_dispatch : null
Original file line number Diff line number Diff line change 7
7
branches:
8
8
- main
9
9
10
+ permissions:
11
+ contents: read
12
+
10
13
concurrency:
11
14
cancel-in-progress: true
12
15
group: {{ '${{ github.workflow }}-${{ github.ref }}' }}
@@ -50,19 +53,19 @@ jobs:
50
53
{% endif %}
51
54
python-version:
52
55
{% if version_between ("3.9" , min_py , max_py ) %}
53
- - ' 3.9'
56
+ - " 3.9"
54
57
{% endif %}
55
58
{% if version_between ("3.10" , min_py , max_py ) %}
56
- - ' 3.10'
59
+ - " 3.10"
57
60
{% endif %}
58
61
{% if version_between ("3.11" , min_py , max_py ) %}
59
- - ' 3.11'
62
+ - " 3.11"
60
63
{% endif %}
61
64
{% if version_between ("3.12" , min_py , max_py ) %}
62
- - ' 3.12'
65
+ - " 3.12"
63
66
{% endif %}
64
67
{% if version_between ("3.13" , min_py , max_py ) %}
65
- - ' 3.13'
68
+ - " 3.13"
66
69
{% endif %}
67
70
{% if project_name == "Serious Scaffold Python" %}
68
71
consistency:
Original file line number Diff line number Diff line change 1
1
name : CommitLint
2
+
3
+ on :
4
+ pull_request :
5
+ types :
6
+ - opened
7
+ - synchronize
8
+ - reopened
9
+ - edited
10
+ push :
11
+ branches :
12
+ - main
13
+
14
+ permissions :
15
+ contents : read
16
+
2
17
concurrency :
3
18
cancel-in-progress : true
4
19
group : ${{ github.workflow }}-${{ github.ref }}
20
+
5
21
jobs :
6
22
commitlint :
7
23
container :
15
31
- name : Validate pull request title with commitlint
16
32
if : github.event_name == 'pull_request'
17
33
run : echo "${{ github.event.pull_request.title }}" | npx commitlint -x @commitlint/config-conventional
18
- on :
19
- pull_request :
20
- types :
21
- - opened
22
- - synchronize
23
- - reopened
24
- - edited
25
- push :
26
- branches :
27
- - main
Original file line number Diff line number Diff line change 1
1
name: Read the Docs Pull Request Preview
2
- concurrency:
3
- cancel-in-progress: true
4
- group: {{ '${{ github.workflow }}-${{ github.ref }}' }}
5
- jobs:
6
- documentation-links:
7
- runs-on: ubuntu-24.04
8
- steps:
9
- - name: Add Read the Docs preview's link to pull request
10
- uses: readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
11
- with:
12
- project-slug: {{ repo_name }}
2
+
13
3
on:
14
4
pull_request_target:
15
5
types:
22
12
- docs/**
23
13
- pdm.dev.lock
24
14
- pdm.lock
15
+
25
16
permissions:
26
17
pull-requests: write
18
+
19
+ concurrency:
20
+ cancel-in-progress: true
21
+ group: {{ '${{ github.workflow }}-${{ github.ref }}' }}
22
+
23
+ jobs:
24
+ documentation-links:
25
+ runs-on: ubuntu-24.04
26
+ steps:
27
+ - name: Add Read the Docs preview's link to pull request
28
+ uses: readthedocs/actions/preview@b8bba1484329bda1a3abe986df7ebc80a8950333 # v1.5
29
+ with:
30
+ project-slug: {{ repo_name }}
Original file line number Diff line number Diff line change 6
6
types:
7
7
- published
8
8
9
+ permissions:
10
+ contents: read
11
+
9
12
concurrency:
10
13
cancel-in-progress: true
11
14
group: {{ '${{ github.workflow }}-${{ github.ref }}' }}
22
25
uses: pdm-project/setup-pdm@deb8d8a4e2a03aabcef6f2cc981923fc6b29ef99 # v4.3
23
26
with:
24
27
cache: true
25
- python-version: ' {{ default_py }}'
28
+ python-version: " {{ default_py }}"
26
29
version: 2.24.1
27
30
cache-dependency-path: |
28
31
./pdm.dev.lock
@@ -113,19 +116,19 @@ jobs:
113
116
matrix:
114
117
python-version:
115
118
{% if version_between ("3.9" , min_py , max_py ) %}
116
- - ' 3.9'
119
+ - " 3.9"
117
120
{% endif %}
118
121
{% if version_between ("3.10" , min_py , max_py ) %}
119
- - ' 3.10'
122
+ - " 3.10"
120
123
{% endif %}
121
124
{% if version_between ("3.11" , min_py , max_py ) %}
122
- - ' 3.11'
125
+ - " 3.11"
123
126
{% endif %}
124
127
{% if version_between ("3.12" , min_py , max_py ) %}
125
- - ' 3.12'
128
+ - " 3.12"
126
129
{% endif %}
127
130
{% if version_between ("3.13" , min_py , max_py ) %}
128
- - ' 3.13'
131
+ - " 3.13"
129
132
{% endif %}
130
133
package-publish:
131
134
runs-on: ubuntu-24.04
@@ -139,7 +142,7 @@ jobs:
139
142
uses: pdm-project/setup-pdm@deb8d8a4e2a03aabcef6f2cc981923fc6b29ef99 # v4.3
140
143
with:
141
144
cache: true
142
- python-version: ' {{ default_py }}'
145
+ python-version: " {{ default_py }}"
143
146
version: 2.24.1
144
147
cache-dependency-path: |
145
148
./pdm.dev.lock
Original file line number Diff line number Diff line change 1
1
name: Renovate
2
+
3
+ on:
4
+ schedule:
5
+ # * is a special character in YAML so you have to quote this string
6
+ - cron: "*/15 0-3 * * 1"
7
+ workflow_dispatch: null
8
+
9
+ permissions:
10
+ contents: read
11
+ issues: write
12
+ pull-requests: write
13
+
2
14
jobs:
3
15
renovate:
4
16
container:
50
62
else
51
63
renovate $RENOVATE_EXTRA_FLAG
52
64
fi
53
- on:
54
- schedule:
55
- # * is a special character in YAML so you have to quote this string
56
- - cron: "*/15 0-3 * * 1"
57
- workflow_dispatch: null
You can’t perform that action at this time.
0 commit comments