Bugfix: convert Arrays to numpy before passing them to matplitlib #14
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 | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '**/*.md' | |
pull_request: | |
branches: [main] | |
defaults: | |
run: | |
# See https://github.com/marketplace/actions/setup-miniconda#important | |
shell: bash -el {0} | |
jobs: | |
validate: | |
strategy: | |
matrix: | |
cppVersion: [17] | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Configure environment | |
uses: ./.github/actions/configure-environment | |
- name: Install yardl | |
run: | | |
YARDL_DIR=${{github.workspace}}/yardl | |
mkdir ${YARDL_DIR} | |
cd ${YARDL_DIR} | |
echo "${{github.workspace}}/yardl" >> $GITHUB_PATH | |
YARDL_VERSION=0.3.2 | |
wget --quiet "https://github.com/microsoft/yardl/releases/download/v${YARDL_VERSION}/yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" | |
tar -xzf "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" | |
rm "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" | |
- name: Build model | |
run: | | |
cd PETSIRD/model | |
yardl generate | |
- name: Python | |
run: | | |
cd python | |
python start.py | |
python 00_simulate_lm_data.py | |
python 01_reconstruct_lm_data.py | |
- name: Cpp | |
run: | | |
cd cpp && mkdir -p build && cd build | |
cmake -G Ninja -S .. -DHDF5_ROOT="$CONDA_PREFIX" | |
ninja |