@@ -11,35 +11,31 @@ jobs:
1111 matrix :
1212 python-version : ["3.10", "3.11", "3.12", "3.13"]
1313 steps :
14- - uses : actions/checkout@v4
15- - name : Setup Graphviz
16- uses : ts-graphviz/setup-graphviz@v2
17- - name : Set up Python ${{ matrix.python-version }}
18- uses : actions/setup-python@v5
19- id : cpython3
20- with :
21- python-version : ${{ matrix.python-version }}
22- cache : pip
23- cache-dependency-path : requirements.txt
24- allow-prereleases : true
25- - run : pip install -r requirements.txt
26- - run : pip install black ruff pytest pytest-cov
27- - run : ruff check .
28- - name : Run mypy if on 3.12, pytype otherwise
29- run : |
30- if [[ '${{ steps.cpython3.outputs.python-version }}' == *"3.11"* ]]; then
31- pip install pytype
32- pytype -j auto graphviz2drawio
33- else
34- echo "pytype does not support >= 3.12: https://github.com/google/pytype/issues/1475"
35- pip install mypy
36- mypy graphviz2drawio --ignore-missing-imports
37- fi
38- - uses : psf/black@stable
39- with :
40- options : " --check --verbose"
41- - run : pytest --cov
42- - name : Run main script
43- run : |
44- python3 -m graphviz2drawio test/directed/hello.gv.txt
45- test -f test/directed/hello.gv.xml
14+ - uses : actions/checkout@v4
15+ - name : Setup Graphviz
16+ uses : ts-graphviz/setup-graphviz@v2
17+ - name : Set up Python ${{ matrix.python-version }}
18+ uses : actions/setup-python@v5
19+ id : cpython3
20+ with :
21+ python-version : ${{ matrix.python-version }}
22+ cache : pip
23+ cache-dependency-path : requirements.txt
24+ allow-prereleases : true
25+ - run : pip install -r requirements.txt
26+ - run : pip install black ruff pytest pytest-cov
27+ - run : ruff check .
28+ - name : Run mypy if on 3.12, pytype otherwise
29+ run : |
30+ if [[ '${{ steps.cpython3.outputs.python-version }}' == 3.11* ]]; then
31+ pip install pytype
32+ pytype -j auto graphviz2drawio
33+ else
34+ echo "pytype does not support >= 3.12: https://github.com/google/pytype/issues/1475"
35+ pip install mypy
36+ mypy graphviz2drawio --ignore-missing-imports
37+ fi
38+ - uses : psf/black@stable
39+ with :
40+ options : " --check --verbose"
41+ - run : pytest --cov
0 commit comments