Skip to content

Commit

Permalink
Switch to MIT license
Browse files Browse the repository at this point in the history
  • Loading branch information
jharwell committed Jan 24, 2023
1 parent d563bc4 commit 4827a31
Show file tree
Hide file tree
Showing 131 changed files with 221 additions and 2,217 deletions.
19 changes: 17 additions & 2 deletions .github/actions/sample-project-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,12 @@ runs:
shell: bash
working-directory: ../../
run: |
# 2023/01/16: || true needed because homebrew installation of whatever
# dependencies these packages requires manual intervention to fix, and I
# don't have a mac.
if [ "${{ runner.os }}" == "macOS" ]; then
brew update
brew install pkg-config cmake libpng freeimage lua qt \
docbook asciidoc graphviz doxygen
docbook asciidoc graphviz doxygen|| true
elif [ "${{ runner.os }}" == "Linux" ]; then
sudo apt-get update
sudo apt-get install cmake libfreeimage-dev libfreeimageplus-dev \
Expand Down Expand Up @@ -89,6 +91,19 @@ runs:
sudo apt-get install ros-${{ inputs.rosdistro }}-turtlebot3-msgs
sudo apt-get install ros-${{ inputs.rosdistro }}-turtlebot3-gazebo
sudo apt-get install ros-${{ inputs.rosdistro }}-turtlebot3-bringup
sudo apt-get install python${{ matrix.python-version }} python${{ matrix.python-version }}-dev
sudo apt-get install python${{ matrix.python-version }}-venv python3-apt
sudo apt-get install python3-pip python3-cairo intltool python3-wheel python3-rospkg python3-empy
# 2023/1/18: You still need install these even after installing stuff
# with apt AND if the sysem python matches your current python. I don't
# know why.
pip3 install empy
pip3 install rospkg wheel pyparsing pyqt5
pip3 install pyqt5 pysip numpy rospkg
pip3 install matplotlib pyyaml psutil
pip3 install pysip defusedxml pyparsing pydev
pip3 install pyopengl opencv-python
- name: Install SIERRA ROSBridge dependency (ubuntu)
if: inputs.platform == 'ros1gazebo'
Expand Down
42 changes: 25 additions & 17 deletions .github/actions/sierra-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,29 @@ runs:
# Ubuntu setup
############################################################################
- name: Setup python (ubuntu)
uses: actions/setup-python@v4
if: runner.os == 'Linux'
shell: bash
run: |
# apt fails randomly on microsoft's azure servers...
sudo sed -i 's/azure\.//' /etc/apt/sources.list
sudo add-apt-repository -y ppa:deadsnakes/ppa
with:
python-version: ${{ matrix.python-version }}

sudo apt-get update
# - uses: Setup python (ubuntu)
# if: runner.os == 'Linux'
# shell: bash
# run: |
# # apt fails randomly on microsoft's azure servers...
# sudo sed -i 's/azure\.//' /etc/apt/sources.list
# sudo add-apt-repository -y ppa:deadsnakes/ppa

# sudo apt-get update

sudo apt-get install python${{ matrix.python-version }} python${{ matrix.python-version }}-dev
sudo apt-get install python${{ matrix.python-version }}-venv python3-apt
sudo apt-get install python3-pip python3-cairo intltool python3-wheel strace
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${{ matrix.python-version }} 1
# sudo apt-get install python${{ matrix.python-version }} python${{ matrix.python-version }}-dev
# sudo apt-get install python${{ matrix.python-version }}-venv python3-apt
# sudo apt-get install python3-pip python3-cairo intltool python3-wheel strace
# sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python${{ matrix.python-version }} 1

# HACK HACK HACK!
sudo ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-38-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/apt_pkg.so
sudo ln -s /usr/lib/python3/dist-packages/netifaces.cpython-38-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/netifaces.so
# # HACK HACK HACK!
# sudo ln -s /usr/lib/python3/dist-packages/apt_pkg.cpython-38-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/apt_pkg.so
# sudo ln -s /usr/lib/python3/dist-packages/netifaces.cpython-38-x86_64-linux-gnu.so /usr/lib/python3/dist-packages/netifaces.so


- name: Install system deps (ubuntu)
Expand All @@ -59,10 +65,12 @@ runs:
shell: bash
if: runner.os == 'macOS'
run: |
brew update
brew install parallel pssh ffmpeg
brew install --cask mactex
brew install --cask xquartz
# 2023/01/16: || true needed because homebrew installation of whatever
# dependencies these packages requires manual intervention to fix, and I
# don't have a mac.
brew install parallel pssh ffmpeg || true
brew install --cask mactex || true
brew install --cask xquartz || true
python -m pip install --upgrade pip
python -m pip install wheel
Expand Down
33 changes: 8 additions & 25 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
name: Coverage CI

# Run:
#
# - Every month. Scheduling helps keep drift/issues with updates
# to runners at bay.
# - On pushes.
on:
push:
paths:
- 'sierra/**'
schedule:
- cron: '0 0 1 * *'

jobs:
argos-ci:
Expand Down Expand Up @@ -42,38 +49,14 @@ jobs:
with:
os: ubuntu-20.04

# docs:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version:
# - 3.9
# steps:
# - uses: actions/checkout@v3
# - uses: ./.github/actions/sierra-setup

# - name: Build docs
# shell: bash
# run: |
# cd docs && coverage run $(which sphinx-build) -M html "." "_build"
# cd docs && coverage combine
# cd docs && coverage report
# cd docs && coverage xml

# - uses: actions/upload-artifact@v3
# with:
# name: ci-sphinx-docs-${{ runner.os }}-${{ matrix.python-version }}-coverage
# path: docs/.coverage.*

coverage:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- 3.9
- 3.8

needs:
# - docs
- unit-tests
- argos-ci
- ros1gazebo-ci
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/exec-env-plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ jobs:
runs-on: ${{ inputs.os }}
strategy:
matrix:
# You CANNOT use python 3.9 with ubuntu 20.04 with ROS, because 3.8 is
# the system python and things just don't work otherwise...
python-version:
- 3.8
- 3.9

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,9 +51,10 @@ jobs:
runs-on: ${{ inputs.os }}
strategy:
matrix:
# You CANNOT use python 3.9 with ubuntu 20.04 with ROS, because 3.8 is
# the system python and things just don't work otherwise...
python-version:
- 3.8
- 3.9

steps:
- uses: actions/checkout@v3
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/integration-all.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,18 @@
name: Integration Tests

# Run:
#
# - Every month. Scheduling helps keep drift/issues with updates
# to runners at bay.
# - On pushes.
on:
push:
paths:
- 'sierra/**'

schedule:
- cron: '0 0 1 * *'

jobs:
argos-ci-ubuntu:
uses: ./.github/workflows/argos.yml
Expand Down Expand Up @@ -53,7 +61,7 @@ jobs:
strategy:
matrix:
python-version:
- 3.9
- 3.8
needs:
- argos-ci-ubuntu
- argos-ci-osx
Expand Down
12 changes: 4 additions & 8 deletions .github/workflows/ros1gazebo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,16 @@ on:
os:
required: True
type: string
# push:
# branches:
# # - master
# # - devel
# paths:
# - 'sierra/**'

jobs:
bc-univar-sanity:
runs-on: ${{ inputs.os }}
strategy:
matrix:
# You CANNOT use python 3.9 with ubuntu 20.04 with ROS, because 3.8 is
# the system python and things just don't work otherwise...
python-version:
- 3.8
- 3.9

steps:
- uses: actions/checkout@v3
Expand All @@ -47,9 +42,10 @@ jobs:
runs-on: ${{ inputs.os }}
strategy:
matrix:
# You CANNOT use python 3.9 with ubuntu 20.04 with ROS, because 3.8 is
# the system python and things just don't work otherwise...
python-version:
- 3.8
- 3.9

steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/static-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
name: Static Analysis

# Run:
#
# - Every month. Scheduling helps keep drift/issues with updates
# to runners at bay.
# - On pushes.
on:
workflow_call:
push:
paths:
- 'sierra/**'
schedule:
- cron: '0 0 1 * *'


jobs:
analyze:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
which sierra-cli
which python3
nox --pythons ${{ matrix.python-version }} --sessions unit_tests
ls -alh
- uses: actions/upload-artifact@v3
with:
Expand Down
18 changes: 18 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Copyright 2022 John Harwell

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Loading

0 comments on commit 4827a31

Please sign in to comment.