-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* CI initial commit * rename to .yml * Add environment yaml * compile rosco * checkout submodules properly * Separate environment setup * syntax fix * run examples - initial commit * typo fix * Add pandas * Install openfast * temp-remove try for execute script * Add run_examples * name environment * remove run_examples * activate environment * pwsh shell * use bash, reorder wisdem install * No shell * typo * Another typo * remove names for setup * remove environment name * only build testing right now * add back shell * use powershell * default shell * Add run_examples back * Add try statement * assume linux for ROSCO shared lib * Add macOS and windows to build testing * install compilers on windows * change to subprocess call * Check for failure * change exit code test * fix file paths * cleanup * Add pull request template
- Loading branch information
1 parent
da6b56c
commit 381ae28
Showing
9 changed files
with
153 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
## Description and Purpose | ||
|
||
## Type of change | ||
What types of change is it? | ||
_Select the appropriate type(s) that describe this PR_ | ||
|
||
- [ ] Bugfix (non-breaking change which fixes an issue) | ||
- [ ] New feature (non-breaking change which adds functionality) | ||
- [ ] Breaking change (non-backwards-compatible fix or feature) | ||
- [ ] Code style update (formatting, renaming) | ||
- [ ] Refactoring (no functional changes, no API changes) | ||
- [ ] Documentation update | ||
- [ ] Maintenance update | ||
- [ ] Other (please describe) | ||
|
||
## Github issues addressed, if one exists | ||
|
||
## Examples/Testing, if applicable | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
name: CI_rosco-toolbox | ||
|
||
# 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 }}) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest", "macOS-latest", "windows-latest"] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge, general | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
|
||
|
||
# Install dependencies of ROSCO toolbox | ||
- name: Add dependencies ubuntu specific | ||
if: false == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y compilers | ||
conda install -y wisdem | ||
- name: Add dependencies windows specific | ||
if: true == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y m2w64-toolchain libpython | ||
conda install -y wisdem | ||
# Install ROSCO toolbox | ||
- name: Install ROSCO toolbox | ||
run: | | ||
python setup.py develop --compile-rosco | ||
run_examples: | ||
name: Run Examples | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: ["ubuntu-latest"] #, "macOS-latest"] | ||
python-version: ["3.8"] | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
|
||
steps: | ||
- name: Checkout repository and submodules | ||
uses: actions/checkout@v2 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Setup environment | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
miniconda-version: "latest" | ||
channels: conda-forge, general | ||
auto-update-conda: true | ||
python-version: 3.8 | ||
environment-file: environment.yml | ||
|
||
|
||
# Install dependencies of ROSCO toolbox | ||
- name: Add dependencies ubuntu specific | ||
if: false == contains( matrix.os, 'windows') | ||
run: | | ||
conda install -y compilers | ||
conda install -y wisdem | ||
# Install ROSCO toolbox | ||
- name: Install ROSCO toolbox | ||
run: | | ||
python setup.py develop --compile-rosco | ||
# Install OpenFAST | ||
- name: Install OpenFAST | ||
run: | | ||
conda install openfast | ||
# Run examples | ||
- name: Run examples | ||
run: | | ||
cd Examples | ||
python run_examples.py | ||
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
channels: | ||
- conda-forge | ||
- defaults | ||
|
||
dependencies: | ||
- matplotlib | ||
- numpy | ||
- pytest | ||
- scipy | ||
- pyYAML | ||
- pandas |