Skip to content

Commit

Permalink
add mypy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kaczmarj committed Mar 7, 2024
1 parent f366c17 commit 3abd31d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/mypy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Static Analysis
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
Test-CLI:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install WSInfer-CLI
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install .[dev] mypy
- name: Run mypy
run: python -m mypy --install-types --non-interactive wsinfer_mil

0 comments on commit 3abd31d

Please sign in to comment.