Notebook test ci #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Jupyter Notebook Examples | |
on: | |
push: | |
branches: | |
- dev | |
pull_request: | |
branches: | |
- master | |
- dev | |
# ---------------------------------------------------------------------------------------------------------------------- | |
defaults: | |
run: | |
shell: bash | |
working-directory: . | |
jobs: | |
test-and-build: | |
name: Test Jupyter Notebooks | |
runs-on: ubuntu-22.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: Convert Notebooks | |
run: | | |
cd /opt/ros/overlay_ws/src/pycram/examples | |
mkdir tmp | |
jupytext --to notebook *.ipynb | |
mv *.ipynb tmp && cd tmp | |
- name: Run tests | |
run: | | |
source /opt/ros/overlay_ws/devel/setup.bash | |
roscd pycram/examples/tmp | |
treon --thread 1 -v |