CI #1182
This file contains hidden or 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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
# Run daily at 0:01 UTC | |
schedule: | |
- cron: '1 0 * * *' | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
build-system: ["make", "tests/build-cmake.sh", "STANDARD=17 tests/build-cmake.sh", "STANDARD=20 tests/build-cmake.sh"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install external dependencies with apt | |
run: >- | |
sudo apt-get update -y && | |
sudo apt-get install -y | |
tree | |
cmake | |
libhdf5-serial-dev | |
libboost-dev | |
libeigen3-dev | |
- name: List build tools available | |
run: | | |
gcc --version | |
g++ --version | |
cmake --version | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --requirement tests/requirements.txt | |
python -m pip list | |
- name: Build | |
run: ${{ matrix.build-system }} | |
- name: Run tests | |
run: | | |
bash tests/test-runner.sh | |
minimal: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install minimal external dependencies with apt | |
run: >- | |
sudo apt-get update -y && | |
sudo apt-get install -y | |
tree | |
cmake | |
libhdf5-serial-dev | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --requirement tests/requirements.txt | |
python -m pip list | |
- name: Build | |
run: MINIMAL=1 ./tests/build-cmake.sh | |
- name: Run tests | |
run: | | |
bash tests/test-runner.sh | |
build-base: | |
runs-on: ubuntu-latest | |
container: lwtnn/build-base:gcc-v${{ matrix.gcc-version }} | |
strategy: | |
matrix: | |
gcc-version: [11.1.0] | |
cxx-standard: [17, 20] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Install external dependencies with apt | |
run: >- | |
apt-get update -y && | |
apt-get install -y | |
tree | |
cmake | |
libhdf5-serial-dev | |
libboost-dev | |
libeigen3-dev | |
- name: List build tools available | |
run: | | |
gcc --version | |
g++ --version | |
cmake --version | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install --requirement tests/requirements.txt | |
python -m pip list | |
- name: Build | |
run: STANDARD=${{ matrix.cxx-standard }} ./tests/build-cmake.sh | |
- name: Run tests | |
run: | | |
bash tests/test-runner.sh |