attempt to improve node info subclass typing #191
This file contains 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: Build | |
on: | |
- push | |
- pull_request | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: | |
- ubuntu-latest | |
- windows-latest | |
- macOS-latest | |
python-version: | |
- "3.8" | |
- "3.11" | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup Graphviz | |
uses: ts-graphviz/setup-graphviz@v1 | |
with: | |
# Skip to run brew update command on macOS, duo to | |
# https://github.com/ts-graphviz/setup-graphviz/issues/457 | |
macos-skip-brew-update: 'true' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[dev]" | |
# install viz dependencies except on windows due to | |
# https://github.com/pygraphviz/pygraphviz/issues/155 | |
- name: Install viz dependencies | |
if: matrix.os != 'windows-latest' | |
run: pip install ".[viz]" | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] | |
- name: Test with pytest | |
run: pytest --color=yes |