@@ -13,10 +13,10 @@ jobs:
13
13
python-version : [ '3.x' ]
14
14
15
15
steps :
16
- - uses : actions/checkout@v2
16
+ - uses : actions/checkout@v4
17
17
18
18
- name : Set up Python
19
- uses : actions/setup-python@v2
19
+ uses : actions/setup-python@v4
20
20
with :
21
21
python-version : ${{ matrix.python-version }}
22
22
architecture : x64
@@ -35,10 +35,10 @@ jobs:
35
35
python-version : [ '3.x' ]
36
36
37
37
steps :
38
- - uses : actions/checkout@v2
38
+ - uses : actions/checkout@v4
39
39
40
40
- name : Set up Python
41
- uses : actions/setup-python@v2
41
+ uses : actions/setup-python@v4
42
42
with :
43
43
python-version : ${{ matrix.python-version }}
44
44
architecture : x64
48
48
run : pip install -r requirements.txt
49
49
50
50
- name : Execute the linting checks
51
- uses : reviewdog/action-flake8@v3.2 .0
51
+ uses : reviewdog/action-flake8@v3.8 .0
52
52
with :
53
53
github_token : ${{ secrets.GITHUB_TOKEN }}
54
54
flake8_args : --config=.flake8
@@ -60,13 +60,13 @@ jobs:
60
60
python-version : [ '3.x' ]
61
61
62
62
steps :
63
- - uses : actions/checkout@v2
63
+ - uses : actions/checkout@v4
64
64
with :
65
65
persist-credentials : false
66
66
fetch-depth : 0
67
67
68
68
- name : Set up Python
69
- uses : actions/setup-python@v2
69
+ uses : actions/setup-python@v4
70
70
with :
71
71
python-version : ${{ matrix.python-version }}
72
72
architecture : x64
79
79
run : export PYTHONPATH=$PWD && pytest --junitxml=pytest.xml --cov=. tests/ | tee pytest-coverage.txt
80
80
81
81
- name : Execute the coverage checks
82
- uses :
MishaKav/[email protected] .16
82
+ uses :
MishaKav/[email protected] .48
83
83
with :
84
84
github_token : ${{ secrets.GITHUB_TOKEN }}
85
85
pytest-coverage-path : ./pytest-coverage.txt
90
90
- name : Generate coverage badge
91
91
run : coverage-badge -f -o docs/coverage.svg
92
92
93
- - name : Generate documentation
94
- run : pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
95
-
96
93
- name : Check changed files
97
- uses : tj-actions/verify-changed-files@v8.8
94
+ uses : tj-actions/verify-changed-files@v16
98
95
id : verify-changed-files
99
96
with :
100
97
files : |
@@ -106,7 +103,7 @@ jobs:
106
103
git config --local user.email "github-actions[bot]@users.noreply.github.com"
107
104
git config --local user.name "github-actions[bot]"
108
105
git add --force docs
109
- git commit -m "Add coverage badge and documentation "
106
+ git commit -m "Add coverage badge"
110
107
111
108
- name : Push changes
112
109
if : steps.verify-changed-files.outputs.files_changed == 'true'
@@ -115,3 +112,50 @@ jobs:
115
112
github_token : ${{ secrets.GITHUB_TOKEN }}
116
113
branch : ${{ github.head_ref }}
117
114
force : true
115
+
116
+ documentation :
117
+ runs-on : ubuntu-latest
118
+ strategy :
119
+ matrix :
120
+ python-version : [ '3.9' ]
121
+
122
+ steps :
123
+ - uses : actions/checkout@v4
124
+ with :
125
+ persist-credentials : false
126
+ fetch-depth : 0
127
+
128
+ - name : Set up Python
129
+ uses : actions/setup-python@v4
130
+ with :
131
+ python-version : ${{ matrix.python-version }}
132
+ architecture : x64
133
+ cache : ' pip'
134
+
135
+ - name : Install the requirements
136
+ run : pip install pydoc-markdown==4.6.3 mkdocs mkdocs-material
137
+
138
+ - name : Generate documentation
139
+ run : pydoc-markdown --render-toc && rm -rf docs/content && mv build/docs/* docs
140
+
141
+ - name : Check changed files
142
+ uses : tj-actions/verify-changed-files@v16
143
+ id : verify-changed-files
144
+ with :
145
+ files : |
146
+ docs
147
+
148
+ - name : Commit files
149
+ if : steps.verify-changed-files.outputs.files_changed == 'true'
150
+ run : |
151
+ git config --local user.email "github-actions[bot]@users.noreply.github.com"
152
+ git config --local user.name "github-actions[bot]"
153
+ git add --force docs
154
+ git commit -m "docs: Add the documentation"
155
+
156
+ - name : Push changes
157
+ uses : ad-m/github-push-action@master
158
+ if : steps.verify-changed-files.outputs.files_changed == 'true'
159
+ with :
160
+ github_token : ${{ secrets.GITHUB_TOKEN }}
161
+ branch : ${{ github.head_ref }}
0 commit comments