-
Notifications
You must be signed in to change notification settings - Fork 17
62 lines (58 loc) · 1.49 KB
/
Copy pathpytest.yaml
File metadata and controls
62 lines (58 loc) · 1.49 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: pytest
on: [pull_request, push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
env: ['-r requirements.txt']
steps:
- uses: actions/checkout@v3
with:
lfs: true
- name: Free disk space
uses: jlumbroso/free-disk-space@main
with:
tool-cache: false
android: true
dotnet: true
haskell: true
large-packages: true
swap-storage: true
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install ${{ matrix.env }}
run: |
python -m pip install --upgrade pip
pip install ${{ matrix.env }}
- name: Install panel_segmentation
run: |
pip install .
- name: Install native system dependencies
run: |
sudo apt-get update
sudo apt-get update
sudo apt-get install -y \
libgl1 \
libglapi-mesa \
libgles2 \
libegl-mesa0 \
libxcb-dri2-0 \
libxcb-dri3-0 \
libxcb-glx0 \
libxcb-present0 \
libxcb-sync1 \
libxshmfence1 \
libxxf86vm1
- name: Install pytest
run: |
pip install pytest pytest-forked
- name: Test with pytest ${{ matrix.env }}
env:
OMP_NUM_THREADS: "1"
OPEN3D_CPU_RENDERING: "true"
run: |
pytest --forked