forked from freemocap/freemocap
-
Notifications
You must be signed in to change notification settings - Fork 0
executable file
·46 lines (44 loc) · 1.22 KB
/
python-testing.yml
File metadata and controls
executable file
·46 lines (44 loc) · 1.22 KB
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
name: Freemocap Tests
on:
workflow_dispatch:
pull_request:
branches: [ main, development ]
paths:
- 'freemocap/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: System Info
run: |
uname -a || true
lsb_release -a || true
gcc --version || true
env
- name: Set up Python 3.x
uses: actions/setup-python@v4
with:
# Semantic version range syntax or exact version of a Python version
python-version: '3.10'
# Optional - x64 or x86 architecture, defaults to x64
architecture: 'x64'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Fix OpenCV conflict
run: |
pip uninstall -y opencv-python opencv-contrib-python
pip install opencv-contrib-python==4.8.1.78
- name: Install libegl1
run: |
sudo apt-get update
sudo apt-get install -y libgl1
- name: Run Tests with Pytest
run: |
pip install pytest
pytest freemocap/tests