-
Notifications
You must be signed in to change notification settings - Fork 24
81 lines (77 loc) · 2.41 KB
/
test_ub22.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
name: Ubuntu22 Py3.10
on: # Run action when changes are pushed or pull requests are accepted
push:
branches-ignore:
- 'docs' # Run on pushes to any branch except the doc hosting branch
pull_request:
branches-ignore:
- 'docs' # Run on pull requests to any branch except the doc hosting branch
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# ===========================
#
# Ubuntu 22
#
# ===========================
ub22:
runs-on: ubuntu-22.04
defaults:
run:
shell: bash
steps:
- name: Set up Git repository
uses: actions/checkout@v3
with:
fetch-depth: 0
# Setup ======================================================
- name: Set up Python "3.10"
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install pytest
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Install coverage and emblem
run: |
pip install coverage
pip install emblem
- name: Install Python dev headers
run: |
sudo apt-get update
sudo apt-get install python3-dev -y
sudo apt install libpython3.10-dev -y
- name: Install curl
run: |
sudo apt-get install curl -y
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libyaml-cpp-dev -y
sudo apt-get install libeigen3-dev -y
sudo apt-get install libx11-6 -y
sudo apt-get install libsm6 -y
sudo apt-get install libglib2.0-0 -y
sudo apt-get install python3-sphinx -y
sudo apt-get install python3-numpydoc -y
sudo apt-get install python3-sphinx-rtd-theme -y
- name: Install Eigen # apt install of libeigen3-dev not working (paths?)
run: |
sudo wget -O Eigen.zip https://gitlab.com/libeigen/eigen/-/archive/3.4.0/eigen-3.4.0.zip
sudo unzip Eigen.zip
sudo mv eigen-*/Eigen /usr/local/include/
- name: Install project dependencies
run: |
pip install setuptools==65.5.0
pip install pip==21
make install
# Run unit tests =============================================
- name: Run tests
id: tests
run: |
# Run tests
cd test
coverage run -m pytest
continue-on-error: true