chore: fix jpeg install instruction for Mac OS (#254) #905
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: Build And Run Test on Ubuntu | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
PYTHON_VER: 3.8 | |
jobs: | |
Build_and_Run_GTest: | |
name: Build and Run GoogleTest | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: anaconda-client-env | |
miniconda-version: "latest" | |
python-version: "3.10" | |
channels: conda-forge | |
auto-activate-base: false | |
- name: Install Conda Dependencies | |
run: | | |
conda install mamba | |
mamba install compilers=1.1.1 --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DBUILD_CLI=ON -DRUN_GTEST=ON -DALLEXTRAS=ON -DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX | |
- name: Build | |
run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}} --parallel 2 | |
- name: Run GTest Suite | |
working-directory: ${{github.workspace}} | |
run: ./tests/runAllTests -C ${{env.BUILD_TYPE}} | |
Build_and_Run_PyTest: | |
name: Build and Run PyTest | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: anaconda-client-env | |
miniconda-version: "latest" | |
python-version: "3.10" | |
channels: conda-forge | |
auto-activate-base: false | |
- name: Install Conda Dependencies | |
run: | | |
conda install mamba | |
mamba install compilers=1.1.1 pytest bfio --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt --file ${{github.workspace}}/ci-utils/envs/conda_py.txt | |
- name: Install Nyxus | |
working-directory: ${{github.workspace}} | |
run: CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DALLEXTRAS=ON" python -m pip install . -vv | |
- name: Run PyTest | |
working-directory: ${{github.workspace}} | |
run: python -m pytest tests/python/ -vv |