Revert "ci: testing image tools" #160
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: Build And Run Test on Windows | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
Build_and_Run_GTest: | |
name: Build and Run GoogleTest | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
name: Add MSVS Path | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: anaconda-client-env | |
python-version: 3.8 | |
channels: conda-forge | |
auto-activate-base: false | |
- name: Install Conda Dependencies | |
run: | | |
conda install --file ${{github.workspace}}/ci-utils/envs/conda_cpp.txt | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}} -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DRUN_GTEST=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}} | |
# Execute tests. | |
run: ./tests/cpp/${{env.BUILD_TYPE}}/runAllTests.exe | |
Build_and_Run_PyTest: | |
name: Build and Run PyTest | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: ilammy/msvc-dev-cmd@v1 | |
name: Add MSVS Path | |
- uses: conda-incubator/setup-miniconda@v2 | |
with: | |
activate-environment: anaconda-client-env | |
python-version: 3.8 | |
channels: conda-forge | |
auto-activate-base: false | |
- name: Install Conda Dependencies | |
working-directory: ${{github.workspace}} | |
run: | | |
conda install pytest --file ./ci-utils/envs/conda_cpp.txt --file ./ci-utils/envs/conda_py.txt | |
- name: Install Filepattern | |
working-directory: ${{github.workspace}} | |
run: CMAKE_ARGS="-DCMAKE_PREFIX_PATH=$CONDA_PREFIX -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX" python -m pip install . -vv | |
- name: Run PyTest | |
working-directory: ${{github.workspace}} | |
run: python -m pytest tests/ |