-
Notifications
You must be signed in to change notification settings - Fork 13
81 lines (66 loc) · 2.07 KB
/
python-package-conda.yml
File metadata and controls
81 lines (66 loc) · 2.07 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
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, macos-latest]
python-version: ["3.9", "3.10", "3.11"]
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 pytest
run: |
python -m pytest -v --disable-warnings
- name: Run example 0
run: |
cd examples/0_beams
export MPLBACKEND=Agg
python 0_SONATA_init_box_beam_HT_antisym_layup_15_6_SI_SmithChopra91.py
- name: Run example 1
run: |
cd examples/1_IEA15MW
export MPLBACKEND=Agg
python 1_sonata_IEA15.py
- name: Run example 2
run: |
cd examples/2_IEA22MW
export MPLBACKEND=Agg
python 2_sonata_IEA22.py
- name: Run example 5
run: |
cd examples/5_IEA_5MW
export MPLBACKEND=Agg
python 5_sonata_IEA5.py
- name: Run example 6
run: |
cd examples/6_beam_stress
export MPLBACKEND=Agg
python 6_sonata_beam_stress.py