align with dumbo-asp #45
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 Test for ucorexplain | |
on: [push] | |
jobs: | |
build-linux: | |
name: Test ucorexplain Linux | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout code into workspace directory | |
uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
environment-file: environment.yml | |
activate-environment: ucorexplain | |
- name: Run tests | |
run: | | |
conda init bash | |
source ~/.bashrc | |
conda activate ucorexplain | |
pytest -v ./tests | |
build-macos: | |
name: Test ucorexplain Macos | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout code into workspace directory | |
uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
environment-file: environment.yml | |
activate-environment: ucorexplain | |
- name: Run tests | |
run: | | |
conda init bash | |
source /Users/runner/.bash_profile | |
conda activate ucorexplain | |
pytest -v ./tests | |
build-windows: | |
name: Test ucorexplain Windows | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- name: Checkout code into workspace directory | |
uses: actions/checkout@v2 | |
- name: Setup conda | |
uses: conda-incubator/setup-miniconda@v2 | |
with: | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
environment-file: environment.yml | |
activate-environment: ucorexplain | |
- name: Run tests | |
run: | | |
conda init bash | |
eval "$(conda shell.bash hook)" | |
conda activate ucorexplain | |
pytest -v ./tests |