-
Notifications
You must be signed in to change notification settings - Fork 13
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 #362 from NREL/develop
0.4.0 Release
- Loading branch information
Showing
106 changed files
with
19,618 additions
and
5,728 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 |
---|---|---|
@@ -1,13 +1,23 @@ | ||
__pycache__ | ||
.pytest_cache | ||
.tox | ||
.vscode | ||
.coverage | ||
dist | ||
docs | ||
tox.ini | ||
Dockerfile | ||
|
||
alfalfa_web/Dockerfile | ||
alfalfa_web/build | ||
alfalfa_web/node_modules | ||
alfalfa_web/.config | ||
alfalfa_web/.npm | ||
|
||
alfalfa_worker/Dockerfile | ||
|
||
# local files created when running | ||
# locally for development | ||
*.tar.gz | ||
wrapped_result.mat | ||
/*.log |
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,8 +1,11 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
# Reenable pull_request if we start receiving 3rd party contributions. | ||
# Otherwise all pull_requests will also be push test and we are enforcing | ||
# that code must be up to date with parent in the PRs. | ||
#pull_request: | ||
|
||
jobs: | ||
pre-commit: | ||
|
@@ -16,7 +19,7 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
python-version: "3.8" | ||
|
||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
@@ -31,43 +34,53 @@ jobs: | |
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Start MongoDB | ||
uses: supercharge/[email protected] | ||
# Defaults to the latest version of MongoDB | ||
|
||
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
python-version: "3.8" | ||
|
||
- name: Install poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.12 | ||
# use a newer version of poetry in this test, but | ||
# poetry in the dockerfile is a bit older because | ||
# of a urllib3 issue | ||
poetry-version: 1.2.1 | ||
|
||
- name: Run tests with pytest | ||
- name: Install poetry dependencies | ||
run: | | ||
poetry install | ||
- name: Runner Details | ||
run: | | ||
cat /etc/issue | ||
python --version | ||
- name: Run tests with pytest | ||
run: | | ||
poetry run pytest | ||
simulation-tests: | ||
name: Run simulation tests | ||
name: Run simulation tests in worker | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 60 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
# only need to start the worker which saves time here because | ||
# the webpack calling on the web container for .dev.yml can take some | ||
# time. | ||
- name: Build and run stack | ||
run: | | ||
printenv | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d | ||
- name: Wait for web server | ||
uses: nev7n/wait_for_response@v1 | ||
with: | ||
url: "http://localhost/" | ||
responseCode: 200 | ||
timeout: 120000 | ||
interval: 500 | ||
docker-compose -f docker-compose.yml -f docker-compose.dev.yml up --build -d worker | ||
- name: Wait another 30s | ||
- name: Wait another 30s for the containers to start | ||
uses: jakejarvis/wait-action@master | ||
with: | ||
time: "30s" | ||
|
@@ -98,12 +111,15 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
python-version: "3.8" | ||
|
||
- name: Install poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.12 | ||
# use a newer version of poetry in this test, but | ||
# poetry in the dockerfile is a bit older because | ||
# of a urllib3 issue | ||
poetry-version: 1.2.1 | ||
|
||
- name: Build and run stack | ||
run: | | ||
|
@@ -129,7 +145,7 @@ jobs: | |
- name: Run tests with pytest | ||
run: | | ||
poetry install | ||
poetry run pytest --timeout=240 -m "integration" | ||
poetry run pytest --timeout=600 -m "integration" | ||
- name: Dump docker logs on failure | ||
if: failure() | ||
|
@@ -146,12 +162,15 @@ jobs: | |
- name: Install Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.7" | ||
python-version: "3.8" | ||
|
||
- name: Install poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.12 | ||
# use a newer version of poetry in this test, but | ||
# poetry in the dockerfile is a bit older because | ||
# of a urllib3 issue | ||
poetry-version: 1.2.1 | ||
|
||
- name: Build and run stack | ||
run: | | ||
|
@@ -178,7 +197,7 @@ jobs: | |
- name: Run tests with pytest | ||
run: | | ||
poetry install | ||
poetry run pytest --timeout=240 -m "integration" | ||
poetry run pytest --timeout=600 -m "integration" | ||
- name: Dump docker logs on failure | ||
if: failure() | ||
|
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,3 +1,4 @@ | ||
/alfalfa_web/build | ||
/alfalfa_worker/build | ||
/docs/resources | ||
*.hbs |
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.