forked from cram2/pycram
-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (52 loc) · 1.77 KB
/
notebook-test-ci.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
name: Test Jupyter Notebook Examples
on:
push:
branches:
- dev
- test-test-ci
pull_request:
branches:
- master
- dev
# ----------------------------------------------------------------------------------------------------------------------
defaults:
run:
shell: bash
working-directory: .
jobs:
test-and-build:
name: Test Jupyter Notebooks
runs-on: ubuntu-20.04
container:
image: "pycram/pycram:dev"
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
# ----------------------------------------------------------------------------------------------------------------
- name: Install python dependencies
run: |
pip3 install --upgrade pip --root-user-action=ignore
cd /opt/ros/overlay_ws/src/pycram
pip3 install -r requirements.txt
pip3 install -r requirements-resolver.txt
# ----------------------------------------------------------------------------------------------------------------
- name: Install Jupytext & Jupyter notebook
run: |
pip3 install jupytext treon
# ----------------------------------------------------------------------------------------------------------------
- name: Convert Notebooks
run: |
cd /opt/ros/overlay_ws/src/pycram/examples
mkdir tmp
jupytext --to notebook *.md
ls .
mv *.ipynb tmp && cd tmp
- name: Source and start ROS
run: |
source /opt/ros/overlay_ws/devel/setup.bash
roslaunch pycram ik_and_description.launch &
- name: Run tests
run: |
source /opt/ros/overlay_ws/devel/setup.bash
roscd pycram/examples/tmp
treon --thread 1 -v