Commit a5fb7d8 1 parent 3abab81 commit a5fb7d8 Copy full SHA for a5fb7d8
File tree 1 file changed +25
-0
lines changed
1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,31 @@ jobs:
102
102
- name : Publish coverage report
103
103
uses : codecov/codecov-action@v3
104
104
105
+ docs :
106
+ runs-on : ubuntu-latest
107
+ name : Documentation build
108
+
109
+ steps :
110
+ - uses : actions/checkout@v4
111
+ - uses : actions/setup-python@v5
112
+ with :
113
+ python-version : ' 3.11'
114
+ cache : ' pip'
115
+ cache-dependency-path : ' requirements/*.txt'
116
+ - name : Install dependencies
117
+ run : pip install -r requirements/ci.txt pytest
118
+ - name : Generate environment variable documentation using OAf and check if it was updated
119
+ run : |
120
+ python src/manage.py generate_envvar_docs --file docs/installation/config.rst --exclude-group Celery
121
+ changes=$(git diff docs/installation/config.rst)
122
+ if [ ! -z "$changes" ]; then
123
+ echo $changes
124
+ echo "Please update the environment documentation by running \`python src/manage.py generate_envvar_docs --file docs/installation/config.rst --exclude-group Celery\`"
125
+ exit 1
126
+ fi
127
+ env :
128
+ DJANGO_SETTINGS_MODULE : openklant.conf.ci
129
+
105
130
docker :
106
131
needs : tests
107
132
name : Build Docker image
You can’t perform that action at this time.
0 commit comments