Temporary revert to find_numpy to fix the feedstock #26
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: OSX | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: [master] | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.job }}-${{ github.ref }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash -e -l {0} | |
jobs: | |
build: | |
runs-on: macos-${{ matrix.os }} | |
name: macos-${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- 11 | |
- 12 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set conda environment | |
uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: environment-dev.yml | |
cache-environment: true | |
- name: Configure using CMake | |
run: cmake -G Ninja -Bbuild -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX -DPYTHON_EXECUTABLE=`which python` -DDOWNLOAD_GTEST=ON $(Build.SourcesDirectory) | |
- name: Install | |
working-directory: build | |
run: cmake --install . | |
- name: Build | |
working-directory: build | |
run: cmake --build . --target test_xtensor_python --parallel 8 | |
- name: Run tests (C++) | |
working-directory: build/test | |
run: ./test_xtensor_python | |
- name: Run tests (Python) | |
run: pytest -s | |
- name: Example - readme 1 | |
working-directory: docs/source/examples/readme_example_1 | |
run: | | |
cmake -Bbuild -DPython_EXECUTABLE=`which python` | |
cd build | |
cmake --build . | |
cp ../example.py . | |
python example.py | |
- name: Example - copy \'cast\' | |
working-directory: docs/source/examples/copy_cast | |
run: | | |
cmake -Bbuild -DPython_EXECUTABLE=`which python` | |
cd build | |
cmake --build . | |
cp ../example.py . | |
python example.py | |
- name: Example - SFINAE | |
working-directory: docs/source/examples/sfinae | |
run: | | |
cmake -Bbuild -DPython_EXECUTABLE=`which python` | |
cd build | |
cmake --build . | |
cp ../example.py . | |
python example.py |