File tree 2 files changed +22
-2
lines changed
2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
permissions : write-all
11
11
steps :
12
+
12
13
- name : Checkout repository
13
14
uses : actions/checkout@v4
14
15
with :
15
16
ref : main
17
+
16
18
- name : Set up Python
17
19
uses : actions/setup-python@v5
18
20
with :
19
21
python-version : " 3.10"
20
22
23
+ - name : Install dependencies
24
+ run : |
25
+ python -m pip install --upgrade pip
26
+ pip install 'causalpy[docs]'
27
+ sudo apt-get update && sudo apt-get install -y graphviz
28
+
29
+ - name : Install pylint explicitly
30
+ run : python -m pip install pylint
31
+
32
+ - name : Verify pylint and pyreverse
33
+ run : |
34
+ python -m pip show pylint
35
+ which pyreverse
36
+ pyreverse --version
37
+
21
38
- name : Configure Git Identity
22
39
run : |
23
40
git config user.name 'github-actions[bot]'
24
41
git config user.email 'github-actions[bot]@users.noreply.github.com'
42
+
25
43
- name : Update the UML Diagrams
26
44
run : |
27
- sudo apt-get update && sudo apt-get install -y graphviz
28
45
make uml
46
+
29
47
- name : Detect UML changes
30
48
id : changes
31
49
run : |
32
- git add docs/source/uml /*.png
50
+ git add docs/source/_static /*.png
33
51
if git diff --staged --exit-code; then
34
52
echo "No changes to commit"
35
53
echo "changes_exist=false" >> $GITHUB_OUTPUT
36
54
else
37
55
echo "changes_exist=true" >> $GITHUB_OUTPUT
38
56
fi
57
+
39
58
- name : Create PR for changes
40
59
if : steps.changes.outputs.changes_exist == 'true'
41
60
run : |
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ docs = [
56
56
" linkify-it-py" ,
57
57
" myst-nb<=1.0.0" ,
58
58
" pathlib" ,
59
+ " pylint" ,
59
60
" sphinx" ,
60
61
" sphinx-autodoc-typehints" ,
61
62
" sphinx_autodoc_defaultargs" ,
You can’t perform that action at this time.
0 commit comments