Skip to content

Commit 2f34ec6

Browse files
authored
Merge pull request #446 from pymc-labs/uml-workflow-fix
fixes for uml workflow
2 parents 9d5e0f0 + 437c99f commit 2f34ec6

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/uml.yml

+21-2
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,52 @@ jobs:
99
runs-on: ubuntu-latest
1010
permissions: write-all
1111
steps:
12+
1213
- name: Checkout repository
1314
uses: actions/checkout@v4
1415
with:
1516
ref: main
17+
1618
- name: Set up Python
1719
uses: actions/setup-python@v5
1820
with:
1921
python-version: "3.10"
2022

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+
2138
- name: Configure Git Identity
2239
run: |
2340
git config user.name 'github-actions[bot]'
2441
git config user.email 'github-actions[bot]@users.noreply.github.com'
42+
2543
- name: Update the UML Diagrams
2644
run: |
27-
sudo apt-get update && sudo apt-get install -y graphviz
2845
make uml
46+
2947
- name: Detect UML changes
3048
id: changes
3149
run: |
32-
git add docs/source/uml/*.png
50+
git add docs/source/_static/*.png
3351
if git diff --staged --exit-code; then
3452
echo "No changes to commit"
3553
echo "changes_exist=false" >> $GITHUB_OUTPUT
3654
else
3755
echo "changes_exist=true" >> $GITHUB_OUTPUT
3856
fi
57+
3958
- name: Create PR for changes
4059
if: steps.changes.outputs.changes_exist == 'true'
4160
run: |

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ docs = [
5656
"linkify-it-py",
5757
"myst-nb<=1.0.0",
5858
"pathlib",
59+
"pylint",
5960
"sphinx",
6061
"sphinx-autodoc-typehints",
6162
"sphinx_autodoc_defaultargs",

0 commit comments

Comments
 (0)