more fix #46
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: Run Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - 'force-test/**' | |
| pull_request: | |
| jobs: | |
| test: | |
| name: Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install all subpackages | |
| run: | | |
| pip install -e Alt-Core | |
| pip install -e Alt-Cameras | |
| pip install -e Alt-ObjectLocalization | |
| pip install -e Alt-Dashboard | |
| pip install -e Alt-Pathplanning | |
| - name: Install test dependencies | |
| run: pip install pytest pytest-cov mypy | |
| - name: Run tests | |
| run: pytest # pytest will automatically pick up the pytest.ini settings | |
| # fix all mypy errors first. Still over 100+ (or 250+ if you include missing imports) left | |
| # - name: run mypy | |
| # run: mypy . | |