Skip to content

PR for real world training #139

PR for real world training

PR for real world training #139

Workflow file for this run

name: Ubuntu20 Py3.8
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 20
#
# ===========================
ub20:
runs-on: ubuntu-20.04
defaults:
run:
shell: bash
steps:
- name: Set up Git repository
uses: actions/checkout@v3
# Setup ======================================================
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: 3.8
- 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.8-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 libpython3.8 -y
sudo apt-get install libx11-6 -y
sudo apt-get install libsm6 -y
sudo apt-get install libxt6 -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