-
Notifications
You must be signed in to change notification settings - Fork 4
36 lines (34 loc) · 1019 Bytes
/
ci_python.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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