Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rely on conda package management to provide key elements of the WEIS stack #262

Merged
merged 260 commits into from
Jan 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
260 commits
Select commit Hold shift + click to select a range
32b7768
avoid distutils calls for new WISDEM setup
gbarter Jan 16, 2023
1a8ab39
Merge commit '8ef456d04b3008a755636423ec45c0c7af8fc710' into numpy_fix
gbarter Jan 16, 2023
8ef456d
Squashed 'pyHAMS/' changes from 92403cbb4..02c01bed9
gbarter Jan 16, 2023
2c22ded
Squashed 'ROSCO/' changes from 51629665d..c1f19425a
gbarter Jan 16, 2023
cd50265
Merge commit '2c22dedc2a2ab75041473a719730aa78bf10b949' into numpy_fix
gbarter Jan 16, 2023
956a171
updates
gbarter Jan 16, 2023
2d27c09
Squashed 'RAFT/' changes from 4024dfd37..246d988f5
gbarter Jan 16, 2023
543f32d
Merge commit '2d27c09e7983956d79671b46a43e05ef2d3e8058' into numpy_fix
gbarter Jan 16, 2023
f75d5b4
Merge commit '683f6864778aa898be1f0ac25d4c82bdccbc4bfe' into numpy_fix
gbarter Jan 16, 2023
683f686
Squashed 'RAFT/' changes from 246d988f5..7781903e8
gbarter Jan 16, 2023
88624de
fix connection that changed in WISDEM
gbarter Jan 16, 2023
28a92c8
Merge commit 'd6555695c19e4eaa0821bd259f198e8da72a5ae7' into numpy_fix
gbarter Jan 16, 2023
d655569
Squashed 'RAFT/' changes from 7781903e8..e49670a0b
gbarter Jan 16, 2023
95f5d7e
suppress reports
gbarter Jan 20, 2023
aae8a75
Merge pull request #203 from WISDEM/numpy_fix
gbarter Jan 20, 2023
850d1fa
Merge branch 'develop' into fix_bugs
gbarter Jan 20, 2023
a3642a8
be sure to do more regular testing of RAFT & pyHAMS
gbarter Jan 20, 2023
69a4394
Merge commit '8023b76225903c0f07e0a95c8a048ff7c583b65d' into fix_bugs
gbarter Jan 21, 2023
8023b76
Squashed 'WISDEM/' changes from da8f484ff..b2ceb847e
gbarter Jan 21, 2023
311b50e
Merge commit '0a4dc9696275a787540fa7cd472583e005307505' into fix_bugs
gbarter Jan 21, 2023
0a4dc96
Squashed 'RAFT/' changes from e49670a0b..b79a8f1a5
gbarter Jan 21, 2023
e694f58
max offset constraint should be filed under floating subcategory in a…
gbarter Jan 23, 2023
e7bc2b7
Merge commit 'c75ea3530e85e9ddce98b215d2cf6940784637e6' into fix_bugs
gbarter Jan 23, 2023
c75ea35
Squashed 'WISDEM/' changes from b2ceb847e..1167cf333
gbarter Jan 23, 2023
827a630
Merge commit '92d47f17a5d80ebb75d7e6493db01eba60ef6517' into fix_bugs
gbarter Jan 23, 2023
92d47f1
Squashed 'RAFT/' changes from b79a8f1a5..34677ef9e
gbarter Jan 23, 2023
d38a107
avoid local pip editable installs
gbarter Jan 23, 2023
b3d6e60
install problems?
gbarter Jan 23, 2023
365829b
tweaking install order
gbarter Jan 23, 2023
73f6b40
Merge commit '3eb362d4ef907063f65907d9112ce642f99e2479' into fix_bugs
gbarter Jan 23, 2023
3eb362d
Squashed 'WISDEM/' changes from 1167cf333..cab5c2200
gbarter Jan 23, 2023
7300115
Update README with M1 mac conda note
dzalkind Jan 23, 2023
1a8a3d5
Merge commit '25206b8e6712c2abdb598ac7bad1e9b4114ba847' into fix_bugs
gbarter Jan 23, 2023
25206b8
Squashed 'WISDEM/' changes from cab5c2200..736057047
gbarter Jan 23, 2023
9675cdd
Merge branch 'fix_bugs' of github.com:WISDEM/WEIS into fix_bugs
gbarter Jan 23, 2023
d412e8f
Merge commit 'ddb83d0e014e8e629cce91207747d86ce1e71897' into fix_bugs
gbarter Jan 24, 2023
ddb83d0
Squashed 'WISDEM/' changes from 736057047..a572dfd25
gbarter Jan 24, 2023
82ed80f
Merge commit '599b8559f62c8ab0237a2cdc9688bdcea08ea6c7' into fix_bugs
gbarter Jan 24, 2023
599b855
Squashed 'WISDEM/' changes from a572dfd25..03ab8465a
gbarter Jan 24, 2023
ff93480
Merge pull request #204 from WISDEM/fix_bugs
gbarter Jan 24, 2023
2d5a1a5
changing system call
gbarter Jan 30, 2023
b207656
adding macs to the CI
gbarter Jan 30, 2023
db0f83b
macs need a fortran package
gbarter Jan 30, 2023
dacf000
trying different compiler approach
gbarter Jan 31, 2023
f62ee10
trying different compiler approach
gbarter Jan 31, 2023
a8628f4
trying different compiler approach
gbarter Jan 31, 2023
07dbd57
trying different compiler approach
gbarter Jan 31, 2023
dafa8cf
trying different compiler approach
gbarter Jan 31, 2023
9437692
file cleanup
gbarter Jan 31, 2023
62fd6f4
Merge commit '5455de3853a4aa547a822720967537a0c8c7a0d5' into mac_test
gbarter Jan 31, 2023
5455de3
Squashed 'pyHAMS/' changes from 02c01bed9..ed65dbe00
gbarter Jan 31, 2023
16c8a82
fix checkout version
gbarter Jan 31, 2023
12c8c98
ready to go for macs I think
gbarter Jan 31, 2023
9b30337
fix MKL issues again
gbarter Jan 31, 2023
5497d4e
fix checkout v
gbarter Jan 31, 2023
e380510
fix shell confusion
gbarter Jan 31, 2023
3d1654b
Merge pull request #206 from WISDEM/mac_test
gbarter Feb 1, 2023
a9a3540
Update to OF3.4 and support NoVo Rotor Studies (#209)
ptrbortolotti Feb 6, 2023
e844427
widen flap, set AfCmode to 5
ptrbortolotti Feb 9, 2023
1d6b098
Simplify modeling inputs (#210)
dzalkind Feb 9, 2023
df59941
Added AD, ED & BD optional nodal outputs to aeroelasticSE (#199)
mayankchetan Feb 10, 2023
ff98d08
Merge remote-tracking branch 'upstream/develop' into issue200
dzalkind Feb 10, 2023
9a4c5ce
Merge pull request #213 from WISDEM/issue200
ptrbortolotti Feb 13, 2023
1c7afe9
thrust coefficient output for weis/aerodynamicse
cfrontin Feb 20, 2023
6b22ce5
added ct to pwr_curve_vars
cfrontin Feb 20, 2023
8059ba0
openpyxl add
cfrontin Feb 20, 2023
fc55ac5
Merge pull request #215 from cfrontin/develop
gbarter Mar 14, 2023
35384db
Fix variable ballast l_fill in RAFT
dzalkind Apr 13, 2023
9d8324f
Clarify draft/freeboard margins, include waves
dzalkind Apr 14, 2023
9da7361
Remove waves from draft/freeboard margins
dzalkind Apr 17, 2023
f379bfa
Add RAFT natural periods for constraints
dzalkind Apr 28, 2023
7235ded
Squashed 'WISDEM/' changes from 03ab8465a..5550fb187
gbarter May 1, 2023
afa862a
Merge commit '7235ded889087a0b59aa4f7336231151ad4cb0a5' into develop
gbarter May 1, 2023
8ac72eb
try mamba
gbarter May 1, 2023
7be7c6d
refreshing environment
gbarter May 1, 2023
9dd5768
propagate fixes
gbarter May 1, 2023
f39f008
fix parsing error
gbarter May 1, 2023
ff2def6
lost the correct syntax
gbarter May 1, 2023
f39fa9c
Merge pull request #225 from WISDEM/fix_ci
gbarter May 2, 2023
4b690ca
Merge branch 'jacket' into develop
gbarter May 2, 2023
de0ac65
Add max_nac_accel as RAFT constraint
dzalkind May 8, 2023
acfcbde
Fix F_lines0 to be ndof size
dzalkind May 9, 2023
95d8c2d
Increase max NNODES and NELEM to work with more columns
dzalkind May 9, 2023
ae39b59
Allow user inputted Hub, RefHt GridHeight, Width
dzalkind May 16, 2023
6a78a08
Reduce mins for HubHt, GridHeight, Width so legal in schema
dzalkind May 19, 2023
0466a38
Squashed 'pCrunch/' changes from f1965c088..3d30d0f33
gbarter May 25, 2023
cc30377
Merge commit '0466a38d14168830f193099852b09401ad7678fc' into develop
gbarter May 25, 2023
41b8aba
Put openfast_runs in same directory as analysis outputs
dzalkind May 26, 2023
44fdccb
Fix PropD and PropThck in openmdao_openfast
dzalkind May 23, 2023
5a86fec
Make period solve component separate from other floating outputs
dzalkind May 26, 2023
34e61ac
update files for openfast 3.5.0
ptrbortolotti Jun 1, 2023
0183649
Squashed 'OpenFAST/' changes from 08fffef24..6b8706b75
ptrbortolotti Jun 1, 2023
93dc50e
remove OpenFAST
ptrbortolotti Jun 1, 2023
659d681
Squashed 'OpenFAST/' content from commit 6b8706b75
ptrbortolotti Jun 1, 2023
8646da0
Merge commit '659d681ee333a565b060700c03ac562c533c0829' as 'OpenFAST'
ptrbortolotti Jun 1, 2023
7298c6b
forgot VelInterpCubic
ptrbortolotti Jun 1, 2023
b13f01c
ConsiderHubMotion is an integer flag
ptrbortolotti Jun 1, 2023
340e176
trying non-conda compilers for mac
gbarter Jun 5, 2023
f47547e
trying non-conda compilers for mac
gbarter Jun 5, 2023
1020a8e
trying non-conda compilers for mac
gbarter Jun 6, 2023
ae592b7
trying conda compilers for mac
gbarter Jun 6, 2023
3f600fa
trying conda compilers for mac
gbarter Jun 6, 2023
c58f9d2
correct mamba action syntax
gbarter Jun 6, 2023
d9da89b
correct mamba action syntax
gbarter Jun 6, 2023
5b0691a
correct mamba action syntax
gbarter Jun 6, 2023
7b9d1c0
micromamba seems to treat compiler environments differently
gbarter Jun 6, 2023
dfeb4e0
add env variables
gbarter Jun 6, 2023
888eef7
back to debugging
gbarter Jun 10, 2023
90cee92
try again
gbarter Jun 10, 2023
c908e71
try miniforge through official channel instead
gbarter Jun 10, 2023
c7b59d8
remove tmate
gbarter Jun 10, 2023
90e533e
try again
gbarter Jun 10, 2023
c88d504
try mamba again
gbarter Jun 10, 2023
68d6317
try mamba again
gbarter Jun 10, 2023
88ec65a
add more libraries to mac
gbarter Jun 10, 2023
5e45248
do verbose debugging
gbarter Jun 10, 2023
7e5a610
try brew
gbarter Jun 10, 2023
e7d1d85
all native
gbarter Jun 10, 2023
e1f49dd
just gfortran
gbarter Jun 10, 2023
dd89f4a
just gfortran
gbarter Jun 10, 2023
876d2f6
add libgcc
gbarter Jun 10, 2023
afde2f4
allin clang
gbarter Jun 10, 2023
a083c41
different linker
gbarter Jun 11, 2023
1f09368
environment later
gbarter Jun 11, 2023
4be2770
turn shared libs off
gbarter Jun 11, 2023
067d25a
final cleanup (hopefully)
gbarter Jun 12, 2023
2dd692a
Merge pull request #229 from WISDEM/openfast3p5p0
gbarter Jun 12, 2023
eddf282
Sync File I/O with ROSCO: some helpful updates
dzalkind Jun 12, 2023
d52d49b
weis reader and writer more robust
ptrbortolotti Jun 23, 2023
c665715
Pull ROSCO 2.8.0
dzalkind Jun 15, 2023
794f0b4
Merge branch 'openfast3p5p0' into ptfm_updates
dzalkind Jul 13, 2023
ed72247
Merge remote-tracking branch 'upstream/iea22' into ptfm_updates
dzalkind Jul 13, 2023
534dc8b
Make ROSCO tuning yaml and OF input dir relative to modeling input
dzalkind May 26, 2023
10213dc
Remove dev-branch from ROSCO
dzalkind Jul 13, 2023
701195b
Update README.md with proper OpenFAST version
dzalkind Oct 18, 2023
00b254d
Remove WISDEM subtree
dzalkind Nov 13, 2023
1b39725
Pull dz_floatse WISDEM
dzalkind Nov 13, 2023
2cbb32e
Squashed 'WISDEM/' content from commit 0e9caf931
dzalkind Nov 13, 2023
a076603
Update file paths, turbsim grid size
dzalkind Nov 13, 2023
b883827
Read RayleighDamp using read_array
dzalkind Nov 14, 2023
1ad14ef
Update DISCON examples to ROSCO 2.8.0
dzalkind Nov 14, 2023
e775509
Define n_full in weis
dzalkind Nov 14, 2023
049ab92
[WISDEM] Get correct mass density attribute from MoorPy
dzalkind Nov 14, 2023
79a0e99
Fix TurbSim grid for example 06
dzalkind Nov 14, 2023
3fa07a3
Fix file paths so they are relative to options file
dzalkind Nov 14, 2023
1eea77f
Use promoted names from rotorse
dzalkind Nov 14, 2023
d1d8661
Revert PropD, T in HydroDyn, check later
dzalkind Nov 14, 2023
f351642
Catch extra exception
dzalkind Nov 14, 2023
b567ce8
Fix paths for IEA-15 semi example
dzalkind Nov 14, 2023
1a7e92f
Look for potential files with relative paths to modeling input
dzalkind Nov 14, 2023
6f9de45
Update setup (#235)
ewquon Nov 14, 2023
2b529dc
Merge remote-tracking branch 'upstream/develop' into phase2
dzalkind Nov 14, 2023
29dc955
Pull RAFT ctopt
dzalkind Nov 14, 2023
f4793a1
Squashed 'RAFT/' changes from 34677ef9e..340a606ff
dzalkind Nov 14, 2023
d63837f
Squashed 'MoorPy/' changes from 4d6bd4f94..1a39ae042
dzalkind Nov 14, 2023
22f2d0e
Pull MoorPy dev
dzalkind Nov 14, 2023
a8a3868
Update output pickles for post processing
dzalkind Nov 14, 2023
9b1d0bd
[WISDEM] Update mooring line params
dzalkind Nov 14, 2023
25a1ec2
Squashed 'pyHAMS/' changes from ed65dbe00..427ac445d
dzalkind Nov 14, 2023
23e416b
Pull pyHAMS develop
dzalkind Nov 14, 2023
8d96479
Squashed 'RAFT/' changes from 340a606ff..9ddb012de
dzalkind Nov 15, 2023
d5c34bc
Pull RAFT ctopt
dzalkind Nov 15, 2023
e61f409
Update postprocessing outputs
dzalkind Nov 16, 2023
816e0ba
Try mamba environment
dzalkind Nov 16, 2023
f3b15dd
Skip SS_Fitting for now, looks like pyHAMS not installed
dzalkind Nov 17, 2023
e58172a
Revert l_fill of RAFT ballast to relative values
dzalkind Nov 21, 2023
93b3175
Skip 03_ freq examples as it's already tested
dzalkind Nov 21, 2023
3fca786
Conda install pyhams
dzalkind Nov 21, 2023
db6c8c8
Update modeling option paths, make relative to self
dzalkind Nov 21, 2023
066bd0e
Remove specific turbsim grid size
dzalkind Nov 21, 2023
25ee62a
push fix to example 08, grid size turbsim
ptrbortolotti Nov 22, 2023
ab8695b
Remove manually set turbsim Grid sizes
dzalkind Nov 27, 2023
27cde9d
Point example 15 to correct ROSCO yaml
dzalkind Nov 27, 2023
045bcee
Merge remote-tracking branch 'upstream/phase2' into phase2
dzalkind Nov 28, 2023
6629910
Squashed 'WISDEM/' changes from 0e9caf931..7059d6158
dzalkind Nov 28, 2023
aef55d9
Pull dz_floatse
dzalkind Nov 28, 2023
740a7b4
Try mamba for CI
dzalkind Nov 28, 2023
726c041
Re-fill ballast sections in raft based on section length
dzalkind Nov 30, 2023
e25ce0d
Skip example 04 until we resolve multiple variable ballasts
dzalkind Nov 30, 2023
93df6ba
Update linearization readme
dzalkind Nov 30, 2023
2d752fb
Squashed 'RAFT/' changes from 9ddb012de..fe82f93f2
dzalkind Dec 1, 2023
f2f39d0
Pull RAFT ctopt
dzalkind Dec 1, 2023
df9d975
Try conda installing mpi packages
dzalkind Dec 1, 2023
9a9f60f
Skip other examples for now to debug
dzalkind Dec 1, 2023
13c265a
Revert "Skip other examples for now to debug"
dzalkind Dec 1, 2023
9f3d4fd
shifting to ruamel.yaml by conda-forge request
gbarter Dec 5, 2023
2afe131
try approach that works for wisdem
gbarter Dec 5, 2023
7138c45
fix broken syntax
gbarter Dec 5, 2023
53c7e32
try to rely on conda more
gbarter Dec 6, 2023
85c82b2
bringing in OF python files
gbarter Dec 7, 2023
5f53424
update openfast paths
gbarter Dec 7, 2023
e52769d
restore dtqp
gbarter Dec 7, 2023
4c25a46
fix typo
gbarter Dec 7, 2023
70f637e
fix turbsim path and add windows to tests
gbarter Dec 7, 2023
ccb2e1d
remove hard coded paths to WISDEM file structure in examples
gbarter Dec 7, 2023
43ca363
allow for some builds to use openfastlib.dll instead of libopenfastli…
gbarter Dec 11, 2023
1fb1109
enabling search for static libraries too
gbarter Dec 12, 2023
321152f
try again without typos
gbarter Dec 12, 2023
2fa6b00
Update README.md with conda note
dzalkind Dec 14, 2023
36b2769
Update README.md with note about mamba
dzalkind Dec 14, 2023
95b32c0
debug windows
gbarter Dec 20, 2023
9820fa4
more win debug
gbarter Dec 20, 2023
c920429
debug windows
gbarter Dec 20, 2023
4307053
not sure why openfast isn't working
gbarter Dec 20, 2023
0455814
not sure why openfast isn't working
gbarter Dec 20, 2023
57fc55e
not sure why openfast isn't working
gbarter Dec 20, 2023
4dcc05a
another try
gbarter Dec 20, 2023
6f8db56
adding intel libs?
gbarter Dec 21, 2023
e658c4d
forcing library use
gbarter Dec 21, 2023
5c20e9b
try ctypes directly
gbarter Dec 21, 2023
858cc35
interactive debug again
gbarter Dec 21, 2023
b3ffd5d
add runtimes
gbarter Dec 21, 2023
804249c
add runtimes
gbarter Dec 22, 2023
6eaac69
reverting
gbarter Dec 22, 2023
1586a73
reverting
gbarter Dec 22, 2023
4727199
windll
gbarter Dec 22, 2023
b2b870e
Ole
gbarter Dec 22, 2023
fc2a736
slash
gbarter Dec 22, 2023
6e846eb
ole again
gbarter Dec 22, 2023
9d4a362
no slash
gbarter Dec 22, 2023
06c7df4
try executable
gbarter Dec 22, 2023
7b38f44
try executable
gbarter Dec 22, 2023
97ab2b8
removing rosco
gbarter Dec 26, 2023
8dc21cb
try different pypi names for qdldl and rosco
gbarter Dec 26, 2023
bdd99c2
Phase 2 Starting Point (#251)
dzalkind Jan 3, 2024
4ce26ba
Merge branch 'develop' into new_install
gbarter Jan 19, 2024
4807f67
remove dtqpy as a separate package and fix rosco imports
gbarter Jan 19, 2024
0ab6ebc
forgot conflict text
gbarter Jan 19, 2024
97fcc48
will hopefully work with new pyhams and rosco conda packages
gbarter Jan 19, 2024
e601bc6
remove dtqpy tests
gbarter Jan 19, 2024
2995ecb
correct some examples
gbarter Jan 20, 2024
1b4443e
fixing unit tests one by one
gbarter Jan 20, 2024
0dea929
try windows
gbarter Jan 20, 2024
27b089e
simplifying install
gbarter Jan 21, 2024
1102d9e
slowly adding missing packages
gbarter Jan 21, 2024
a168eab
smoother test packages
gbarter Jan 21, 2024
85db8ca
syntax fix
gbarter Jan 21, 2024
d355ac1
package list fix
gbarter Jan 21, 2024
0d0b2b2
further simplify
gbarter Jan 21, 2024
e2f8e4a
use rosco dll path
gbarter Jan 21, 2024
3980103
Getting ready for PR
gbarter Jan 22, 2024
0b2e2ae
fix rosco imports in test. Also, smt now ready for conda delivery
gbarter Jan 22, 2024
b6c48a9
back to gdown
gbarter Jan 22, 2024
51e44d6
fix some examples
gbarter Jan 22, 2024
0e204da
Update to ROSCO v2.9.0 (#256)
dzalkind Jan 22, 2024
53eb2fc
Merge remote-tracking branch 'upstream/develop' into new_install
dzalkind Jan 22, 2024
59ac9bb
Unpin pyhams for now
dzalkind Jan 22, 2024
023b31d
fully respect user inputs and use_exe flag to restore linearization w…
gbarter Jan 24, 2024
77a878d
Remove extra print statements
dzalkind Jan 24, 2024
3a002bf
Merge pull request #260 from WISDEM/new_install
gbarter Jan 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
120 changes: 62 additions & 58 deletions .github/workflows/CI_WEIS.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,97 +2,101 @@ name: CI_WEIS

# We run CI on push commits 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 }})
name: Build (${{ matrix.os }} Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}

defaults:
run:
shell: bash -el {0}

strategy:
fail-fast: true
fail-fast: false
matrix:
os: ["ubuntu-latest"] #, "macOS-latest"]
python-version: ["3.8"]
os: ["ubuntu-latest", "macOS-latest"] #, "windows-latest"]
python-version: ["3.9","3.10","3.11"]

steps:
- uses: actions/checkout@v2

# This is the more official way to do miniconda, but it messes with the GitHub worker environment and shell quite a bit
#- 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: 3.8
# environment-file: environment.yml
#- name: Setup GNU Fortran
# # if: false == contains( matrix.os, 'windows')
# uses: awvwgk/setup-fortran@main

# This is a less official, but more lightweight way to do miniconda
- uses: s-weigand/setup-conda@v1
# https://github.com/marketplace/actions/setup-conda
- uses: actions/checkout@v4

- name: Install conda/mamba
uses: conda-incubator/setup-miniconda@v2
# https://github.com/marketplace/actions/setup-miniconda
with:
update-conda: true
python-version: 3.8
conda-channels: conda-forge
activate-conda: true
- run: conda env update --file environment.yml

#- name: Show custom environment
# shell: bash
# run: |
# cat $GITHUB_ENV
# printenv
# To use mamba, uncomment here, comment out the miniforge line
# mamba-version: "*"
miniforge-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
activate-environment: test
auto-activate-base: false

- name: Add dependencies windows specific
if: contains( matrix.os, 'windows')
run: |
conda install -y -c intel intel-openmp mkl

# Install dependencies of WEIS specific to ubuntu
- name: Add dependencies ubuntu specific
if: false == contains( matrix.os, 'windows')
shell: bash
# (if you use the shell here, cannot use 'compiler' package otherwise get link problems to system libraries
# Mpi only seems to work with the shell command though, so instead rely on system compilers
run: |
conda install -y petsc4py mpi4py openmpi
python -c "import platform; print(platform.node())"

# Install dependencies of WISDEM specific to windows
- name: Add dependencies windows specific
if: contains( matrix.os, 'windows')

- name: Add test packages
run: |
conda install -y m2w64-toolchain libpython

conda install -y pytest pytest-cov coveralls
- name: Show custom environment
shell: bash
run: |
conda list

# Debugging session
#- name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
printenv | sort

# Install WEIS
- name: Install WEIS
shell: bash
run: |
python setup.py develop
pip install -e .

# Debugging session
#- name: Setup tmate session
# if: contains( matrix.os, 'windows')
# uses: mxschmitt/action-tmate@v3

#- name: Show openfast environment
# run: |
# which -a openfast
# cd /c/Miniconda3/envs/test/Library/bin/
# ls *fast*.exe
# ls *fast*.dll
# openfast -h
# python -c "import ctypes; ctypes.cdll.LoadLibrary('openfastlib.dll')"
# ls *fast*.dll
# cd examples/03_NREL5MW_OC3_spar
# python weis_driver.py

# List the collected tests for debugging purposes
- name: List tests
shell: bash
run: |
pytest weis --collect-only
pytest --collect-only weis

# Run all tests within WEIS, but not computationally expensive examples
- name: Run tests within WEIS
shell: bash
run: |
pytest weis --cov-config=.coverageac --cov=weis
pytest --cov-config=.coverageac --cov=weis -p no:warnings --disable-warnings weis

# Run coveralls
- name: Run coveralls
if: contains( matrix.os, 'ubuntu')
if: contains( matrix.os, 'ubuntu') && contains( matrix.python-version, '3.10')
uses: coverallsapp/github-action@v2
# This also works, https://github.com/AndreMiras/coveralls-python-action
#uses: AndreMiras/coveralls-python-action@develop
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --service=github
#env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
#run: |
# coveralls --service=github
78 changes: 31 additions & 47 deletions .github/workflows/run_exhaustive_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,75 +5,62 @@ on: [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 }})
name: Build (${{ matrix.os }} Python ${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
# if: "contains(github.event.head_commit.message, 'exhaustive_CI')" # This line could be used to have commit-specific instructions

defaults:
run:
shell: bash -l {0}

strategy:
fail-fast: true
matrix:
os: ["ubuntu-latest"] #, "macOS-latest"]
python-version: ["3.8"]
python-version: ["3.9","3.10", "3.11"]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

# This is the more official way to do miniconda, but it messes with the GitHub worker environment and shell quite a bit
#- 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: 3.8
# environment-file: environment.yml

# This is a less official, but more lightweight way to do miniconda
- uses: s-weigand/setup-conda@v1
# https://github.com/marketplace/actions/setup-conda
- name: Install conda/mamba
uses: conda-incubator/setup-miniconda@v2
# https://github.com/marketplace/actions/setup-miniconda
with:
update-conda: true
python-version: 3.8
conda-channels: conda-forge
activate-conda: true
- run: conda env update --file environment.yml

#- name: Show custom environment
# shell: bash
# run: |
# cat $GITHUB_ENV
# printenv
# To use mamba, uncomment here, comment out the miniforge line
#mamba-version: "*"
miniforge-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
environment-file: environment.yml
activate-environment: test
auto-activate-base: false

# Install dependencies of WEIS specific to ubuntu
- name: Add dependencies ubuntu specific
if: false == contains( matrix.os, 'windows')
shell: bash
# (if you use the shell here, cannot use 'compiler' package otherwise get link problems to system libraries
# Mpi only seems to work with the shell command though, so instead rely on system compilers
run: |
conda install -y petsc4py mpi4py openmpi
python -c "import platform; print(platform.node())"

# Install dependencies of WISDEM specific to windows
- name: Add dependencies windows specific
if: contains( matrix.os, 'windows')
- name: Show custom environment
run: |
conda install -y m2w64-toolchain libpython
conda list
printenv | sort

# Install WEIS
- name: Install WEIS
shell: bash
run: |
python setup.py develop

# Debugging session
#- name: Setup tmate session
# uses: mxschmitt/action-tmate@v3

# Install WEIS
- name: Install WEIS
run: |
pip install -e .

# Test walkthrough notebook
- name: Test postprocessing notebooks
run: |
cd examples/16_postprocessing
gdown --no-check-certificate 1_FJaN-W1DoPNmO6YLSjnftvq6-7bn4VI
pip install gdown
gdown --no-check-certificate 1AtLjjX5xpPqlHkfwDqeUj6VBMOYWcjmV
unzip outputs
treon plot_FAST.ipynb
treon rev_DLCs_WEIS.ipynb
Expand All @@ -82,17 +69,15 @@ jobs:

# Run all examples
- name: Run tests within WEIS
shell: bash
run: |
cd weis/test
python run_examples.py

# Run scripts within rotor_opt folder with MPI
- name: Run parallel examples rotor optimization
shell: bash
run: |
cd examples/05_IEA-3.4-130-RWT
mpirun -np 2 python weis_driver.py
mpiexec -np 2 python weis_driver.py

# Run scripts within dac folder
# - name: Run examples distributed aerodynamic control
Expand All @@ -102,8 +87,7 @@ jobs:

# Run scripts within design of experiments folder
- name: Run examples design of experiments
shell: bash
run: |
cd examples/09_design_of_experiments
mpirun -n 2 --bind-to core python DOE_openfast.py
mpiexec -n 2 --bind-to core python DOE_openfast.py
python postprocess_results.py
6 changes: 0 additions & 6 deletions MoorPy/.gitignore

This file was deleted.

8 changes: 0 additions & 8 deletions MoorPy/.readthedocs.yaml

This file was deleted.

22 changes: 0 additions & 22 deletions MoorPy/README.md

This file was deleted.

20 changes: 0 additions & 20 deletions MoorPy/docs/Makefile

This file was deleted.

14 changes: 0 additions & 14 deletions MoorPy/docs/api.rst

This file was deleted.

Loading
Loading