Skip to content

Similarly update in Sphinx workflow. #124

Similarly update in Sphinx workflow.

Similarly update in Sphinx workflow. #124

Workflow file for this run

name: Testing
on:
push:
branches:
- 'main'
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
strategy:
max-parallel: 1
matrix:
python-version: ['3.10']
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Build REHEATFUNQ
run: |
# Some basic environment information:
echo "Current folder:"
pwd
ls -a
echo ""
ls .github
ls .github/scripts
echo ""
# Install packages:
sudo apt-get update
sudo apt-get install -y libproj-dev libeigen3-dev \
libcgal-dev libgeographic-dev liblapacke-dev\
build-essential\
git openssh-client ssh cython3 \
python3-sphinx ninja-build cmake-data \
cmake-extras extra-cmake-modules \
wget
python3 -m pip install --user numpy
# Use modern GCC:
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10
# Monkey-patched install of newer boost version:
wget -q https://boostorg.jfrog.io/artifactory/main/release/1.80.0/source/boost_1_80_0.tar.bz2
mkdir boost-dl
tar --bzip2 -xf boost_1_80_0.tar.bz2 -C boost-dl
sudo rm -r /usr/include/boost
sudo cp -r boost-dl/boost_1_80_0/boost /usr/include
# Python installs:
python3 -m pip install --upgrade pip
sudo apt purge python3-setuptools
python3 -m pip install --user --verbose .
- name: Lint with flake8
run: |
python3 -m pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 reheatfunq --count --select=E9,F63,F7,F82 --show-source --statistics
flake8 jupyter --count --select=E9,F63,F7,F82 --show-source --statistics
- name: Test with pytest
run: |
#
python3 -m pip install pytest
cd testing
# Ensure that we can execute the imports:
python3 test_anomaly_posterior.py
# Run the test suite:
pytest -s
- name: Build Dockerfile
run: |
sudo apt-get -y install podman
podman build --format docker -t reheatfunq .