mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-01-22 16:38:14 +01:00
- automatically run python tests - automatically run test using data files on local runner from gitea - fixed some of the workflows --------- Co-authored-by: Erik Fröjdh <erik.frojdh@psi.ch>
60 lines
1.2 KiB
YAML
60 lines
1.2 KiB
YAML
name: Build the package using cmake then documentation
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
platform: [ubuntu-latest, ]
|
|
python-version: ["3.12", ]
|
|
|
|
runs-on: ${{ matrix.platform }}
|
|
|
|
|
|
defaults:
|
|
run:
|
|
shell: "bash -l {0}"
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup dev env
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get -y install cmake gcc g++
|
|
sudo apt-get -y install python3.12 python3.12-dev python3.12-venv python3-pip
|
|
sudo apt-get -y install doxygen
|
|
python3.12 -m venv venv
|
|
source venv/bin/activate
|
|
pip install --upgrade pip
|
|
pip install breathe
|
|
pip install sphinx_rtd_theme sphinx
|
|
pip install numpy
|
|
pip install furo
|
|
|
|
- name: Build library
|
|
run: |
|
|
source venv/bin/activate
|
|
mkdir build
|
|
cd build
|
|
cmake .. -DAARE_PYTHON_BINDINGS=ON -DAARE_DOCS=ON
|
|
make -j 2
|
|
make docs
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|