-
Notifications
You must be signed in to change notification settings - Fork 15
53 lines (43 loc) · 1.61 KB
/
raspberry_pi.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# see https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Raspberry Pi Tests
on: [push]
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./raspberry_pi
#container: wpilib/roborio-cross-ubuntu:2024-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
# the broken thing seems to relate numpy and eigen
- run: sudo apt install -y libeigen3-dev
- run: python -m pip install --upgrade pip
# supports Buffer
- run: python3 -m pip install typing_extensions==4.12.2
- run: pip install pytest
- run: pip install typeguard
- run: pip install anyio
- run: pip install pytest-forked
# i think the default numpy version is 2.1.2, which is really new
- run: pip install numpy==1.26.2
- run: pip install robotpy==2024.3.2.1
- run: pip install robotpy-cscore
- run: pip install robotpy-wpimath
- run: pip install robotpy-wpiutil
- run: pip install robotpy-apriltag
- run: pip install opencv-python
# - run: python3 runtests.py
- run: pytest --forked -vv -rA --full-trace tests/config
if: always()
- run: pytest --forked -vv -rA --full-trace tests/dashboard
if: always()
- run: pytest --forked -vv -rA --full-trace tests/localization
if: always()
- run: pytest --forked -vv -rA --full-trace tests/network
if: always()
- run: pytest --forked -vv -rA --full-trace tests/util
if: always()