Adding tip to docs #39
Workflow file for this run
This file contains 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: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
standard: | |
strategy: | |
fail-fast: false | |
matrix: | |
runs-on: [ubuntu-latest, macos-latest, windows-latest] | |
include: | |
- runs-on: ubuntu-latest | |
config: -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=1 | |
conda: environment.yaml | |
prop: tests & examples | |
- runs-on: macos-latest | |
config: -DCMAKE_BUILD_TYPE=Release -DBUILD_ALL=1 | |
conda: environment.yaml | |
prop: tests | |
- runs-on: windows-latest | |
config: -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=1 -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ | |
conda: environment.yaml | |
prop: tests | |
defaults: | |
run: | |
shell: bash -l {0} | |
name: ${{ matrix.runs-on }} • x64 ${{ matrix.args }} | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Basic GitHub action setup | |
uses: actions/checkout@v3 | |
- name: Set conda environment | |
uses: mamba-org/provision-with-micromamba@main | |
with: | |
environment-file: ${{ matrix.conda }} | |
environment-name: myenv | |
- name: Install clang | |
if: runner.os == 'Windows' | |
run: micromamba install -c conda-forge clang_win-64 ninja | |
- name: Set dummy version | |
run: echo "SETUPTOOLS_SCM_PRETEND_VERSION=0.0" >> $GITHUB_ENV | |
- name: Configure using CMake | |
run: cmake -Bbuild ${{ matrix.config }} | |
- name: Build C++ ${{ matrix.prop }} | |
working-directory: build | |
run: cmake --build . | |
- name: Run C++ ${{ matrix.prop }} | |
working-directory: build | |
run: ctest --output-on-failure | |
- name: Build and install Python module | |
run: python setup.py install --build-type Release -vv | |
- name: Run Python tests | |
if: runner.os == 'macOS' | |
working-directory: docs/examples | |
run: | | |
python S2.py --check | |
python S2_autocorrelation.py --check | |
python S2_mask.py --check | |
python S2_ensemble.py --check | |
python C2.py --check | |
python L.py --check | |
python W2.py --check | |
python W2c.py --check | |
python clusters.py --check | |
python clusters_centers.py --check | |
python clusters_dilate.py --check | |
python clusters_dilate_periodic.py --check | |
python heightheight.py --check | |
python mean.py --check | |
python pixel_path.py --check | |
python structure.py --check | |
- name: Build doxygen-docs (error on warning) | |
if: runner.os == 'macOS' | |
working-directory: build | |
run: make docs |