Fix Python CI breakages #967
Workflow file for this run
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: Continuous Integration [python] | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
py-cpu: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
# We use ubuntu-22.04 and macos-13 because they are the final Github runner images | |
# with Python 3.8 pre-installed. Brain OS images based on Jetpack 5 use 3.8 as the | |
# system Python, so we want to test 3.8 even though it is EOL. | |
os: [ubuntu-22.04, macos-13] | |
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: "recursive" | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: pip3 install -vvv -e .[dev] | |
- name: Run sequential tests | |
run: ./run_python_tests.sh | |
- name: Run asyncio tests | |
run: ./run_python_tests.sh --asyncio | |
- name: Run mypy | |
run: mypy py/farm_ng |