Fix ci #32
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: Python tests | |
| on: | |
| push: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f vision/requirements.txt ]; then pip install -r vision/requirements.txt; fi | |
| python -m pip install pyright | |
| - name: Run unit tests | |
| working-directory: ./vision | |
| run: | | |
| python run_tests.py | |
| - name: Run type checks | |
| working-directory: ./vision | |
| run: | | |
| python -m pyright . |