-
Notifications
You must be signed in to change notification settings - Fork 3
57 lines (46 loc) · 1.48 KB
/
python-package-conda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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