Skip to content

Add test for affinity features #34

Add test for affinity features

Add test for affinity features #34

Workflow file for this run

name: build-and-test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
test:
name: ${{ matrix.os }} ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
python-version: [3.7, 3.8, 3.9]
steps:
- name: Checkout
uses: actions/checkout@v2
# this will set the system compiler;
# I don't know how to set the conda compilers for windows
- name: Set windows env
if: matrix.os == 'windows-latest'
uses: ilammy/msvc-dev-cmd@v1
- name: Setup miniconda
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: nifty-build-env
auto-update-conda: true
channels: conda-forge
environment-file: .github/workflows/environment.yaml
python-version: ${{ matrix.python-version }}
use-mamba: true
mamba-version: "*"
auto-activate-base: false
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
- name: Build linux
if: matrix.os == 'ubuntu-latest'
shell: bash -l {0}
run: .github/workflows/build_unix.sh
- name: Build mac
if: matrix.os == 'macos-latest'
shell: bash -l {0}
run: .github/workflows/build_unix.sh
- name: Build win
if: matrix.os == 'windows-latest'
shell: bash -l {0}
run: .github/workflows/build_win.bat
- name: Run tests
shell: bash -l {0}
run: python -m unittest discover -s src/python/test -v