Support PyDot v3 and v4 (#53) #188
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PyTest | |
| on: | |
| push: | |
| pull_request: | |
| env: | |
| COLUMNS: 120 | |
| jobs: | |
| pytest: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| pydot-version: ["3", "4"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install Dependencies | |
| run: make install | |
| - name: Install specific pydot major version | |
| run: | | |
| pip install "pydot>=${{ matrix.pydot-version }},<${{ matrix.pydot-version == '3' && '4' || '5' }}" | |
| python -c "import pydot; print(f'Testing with pydot {pydot.__version__}')" | |
| - name: Run Tests | |
| run: make pytest |