-
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.
Merge pull request #5 from WISDEM/develop
WISDEM/WEIS:develop -> UIUC/WEIS:uiuc-dfsm
- Loading branch information
Showing
850 changed files
with
165,615 additions
and
60,416 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
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 |
---|---|---|
@@ -1,9 +1,25 @@ | ||
name: 'AeroDyn module tests' | ||
description: 'Run tests specific to the AeroDyn module' | ||
author: 'Rafael Mudafort https://github.com/rafmudaf' | ||
|
||
|
||
inputs: | ||
test-target: | ||
description: 'Which tests to run: unit | regression | all' | ||
default: 'all' | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- run: ctest -VV -R fvw_utest | ||
- run: | | ||
if [[ ${{ inputs.test-target }} == "unit" ]] || [[ ${{ inputs.test-target }} == "all" ]]; then | ||
ctest -VV -R fvw_utest | ||
fi | ||
if [[ ${{ inputs.test-target }} == "regression" ]] || [[ ${{ inputs.test-target }} == "all" ]]; then | ||
ctest -VV -j7 -R ad_ | ||
fi | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash |
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,9 @@ | ||
name: 'SubDyn module tests' | ||
description: 'Run tests specific to the SubDyn module' | ||
author: 'Rafael Mudafort https://github.com/rafmudaf' | ||
runs: | ||
using: "composite" | ||
steps: | ||
- run: ctest -VV -j7 -R SD_ | ||
working-directory: ${{runner.workspace}}/build | ||
shell: bash |
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,35 @@ | ||
|
||
from shutil import copyfile | ||
|
||
# Open existing meta.yaml and another one | ||
metayaml = open('meta.yaml') | ||
outyaml = open('out.yaml', 'w') | ||
|
||
# Find the build number, increment it, and write to the new yaml | ||
found = False | ||
for line in metayaml: | ||
if "number:" in line: | ||
found = True | ||
# For the line containing the build number, parse the number and increment | ||
elements = [e.strip() for e in line.split(":")] | ||
if not elements[1].isnumeric(): | ||
raise ValueError("Build number is not parsable: {}".format(line)) | ||
|
||
old_build_number = int(elements[1]) | ||
new_build_number = old_build_number + 1 | ||
|
||
# Write new build number to new yaml | ||
outyaml.write(line.replace(str(old_build_number), str(new_build_number))) | ||
else: | ||
# Write all other lines to new yaml | ||
outyaml.write(line) | ||
|
||
if not found: | ||
raise Exception("Error incrementing the build number.") | ||
|
||
# Clean up | ||
metayaml.close() | ||
outyaml.close() | ||
|
||
# Replace original meta.yaml with the new one | ||
copyfile('out.yaml', 'meta.yaml') |
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,47 @@ | ||
|
||
name: 'Conda Deployment Pipeline' | ||
|
||
on: | ||
push: | ||
paths-ignore: | ||
- 'docs/**' | ||
- 'share/**' | ||
- 'vs-build/**' | ||
branches: | ||
- 'dev' | ||
|
||
jobs: | ||
update-dev: | ||
if: github.repository_owner == 'OpenFAST' | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
# - name: Echo path | ||
# run: | | ||
# echo ${{runner.workspace}} # /home/runner/work/openfast | ||
# echo $GITHUB_WORKSPACE # /home/runner/work/openfast/openfast | ||
- name: Checkout OpenFAST/dev | ||
uses: actions/checkout@main | ||
with: | ||
path: ${{runner.workspace}}/openfast | ||
ref: dev | ||
|
||
- name: Checkout openfast-feedstock | ||
uses: actions/checkout@main | ||
with: | ||
repository: conda-forge/openfast-feedstock | ||
token: ${{ secrets.ACTIONS_TOKEN }} | ||
path: ./openfast-feedstock | ||
ref: dev | ||
|
||
- name: Prep the meta.yaml | ||
run: python ${{runner.workspace}}/openfast/.github/actions/utils/increment_conda_build.py | ||
working-directory: ./openfast-feedstock/recipe | ||
|
||
- name: Push Project B | ||
run: | | ||
cd ./openfast-feedstock | ||
git add recipe/meta.yaml | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git commit -m "Increment build number for dev label" | ||
git push |
Oops, something went wrong.