Sonata mini #67
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: CI_SONATA | |
# We run CI on push commits and pull requests on all branches | |
on: [push, pull_request] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
build: | |
name: Build (${{ matrix.os }} Python ${{ matrix.python-version }}) | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
fail-fast: False | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.8", "3.9"] | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v2 | |
- name: Install miniconda | |
uses: conda-incubator/setup-miniconda@v2 | |
# https://github.com/marketplace/actions/setup-miniconda | |
with: | |
miniconda-version: "latest" | |
channels: conda-forge | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
environment-file: environment.yaml | |
activate-environment: test | |
auto-activate-base: false | |
- name: Download and install anba | |
run: | | |
git clone https://github.com/ANBA4/anba4.git | |
cd anba4 | |
pip install -e . | |
- name: Install SONATA | |
run: | | |
pip install -e . | |
- name: Run example 0 | |
run: | | |
cd examples/0_beams | |
python 0_SONATA_init_box_beam_HT_antisym_layup_15_6_SI_SmithChopra91.py | |
- name: Run example 1 | |
run: | | |
cd examples/1_IEA15MW | |
python 1_sonata_IEA15.py | |
- name: Run example 2 | |
run: | | |
cd examples/2_IEA22MW | |
python 2_sonata_IEA22.py | |
- name: Run example 5 | |
run: | | |
cd examples/5_IEA_5MW | |
python 5_sonata_IEA5.py |