-
Notifications
You must be signed in to change notification settings - Fork 7
83 lines (72 loc) · 2.2 KB
/
tests_docker.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: tests_docker
on:
push:
branches:
- '**' # Matches all branches
pull_request:
branches:
- '**' # Matches all branches
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"] # Define Python versions as strings
open3d-version: [0.18]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install system dependencies
run: |
sudo apt-get update && \
sudo apt-get upgrade -y && \
sudo apt-get install -y --no-install-recommends \
gdb \
git \
make \
libeigen3-dev \
libgl1-mesa-dev \
libglew-dev \
libglfw3-dev \
libglu1-mesa-dev \
libpng-dev \
libusb-1.0-0 \
libgomp1 \
pybind11-dev \
pandoc \
software-properties-common \
mesa-utils && \
sudo rm -rf /var/lib/apt/lists/*
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install open3d==${{ matrix.open3d-version }}
pip install -e .[dev,LAS]
- name: Run tests
run: make test
- name: Generate coverage badge
run: coverage-badge -f -o images/coverage.svg
- name: Verify changed files
uses: tj-actions/verify-changed-files@v6
id: changed_files
with:
files: images/coverage.svg
- name: Commit badge
if: steps.changed_files.outputs.files_changed == 'true'
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add images/coverage.svg
git commit -m "Updated coverage.svg"
- name: Push changes
if: steps.changed_files.outputs.files_changed == 'true'
uses: ad-m/github-push-action@v0.6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}