Skip to content

Merge branch 'main' of github.com:spfrommer/torchexplorer #72

Merge branch 'main' of github.com:spfrommer/torchexplorer

Merge branch 'main' of github.com:spfrommer/torchexplorer #72

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11']
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install system dependencies
run: |
sudo apt-get install graphviz libgraphviz-dev
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache Python dependencies
uses: actions/[email protected]
id: cache
with:
path: ${{ env.pythonLocation }}
key: ${{ env.pythonLocation }}-${{ hashFiles('setup.py') }}
- name: Install Python dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install '.[dev]'
- name: MyPy (static type check)
run: |
mypy -p torchexplorer --disable-error-code=import-untyped
- name: PyTest (local tests)
if: always()
run: |
python -m pytest tests/integration/local.py