10000 docs: Add CITATION.cff file for citation metadata (#178) · lwtnn/lwtnn@4e26705 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CI

CI #1182

Workflow file for this run

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
0