-
Notifications
You must be signed in to change notification settings - Fork 193
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See README
- Loading branch information
Showing
102 changed files
with
2,616 additions
and
1,476 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,108 @@ | ||
name: SMARTS scheduled run of ULTRA tests | ||
|
||
on: | ||
schedule: | ||
- cron: '0 11 * * 3' | ||
# Time is in UTC | ||
# Runs at 11.00pm, UTC , every Wednesday | ||
# Runs at 7.00pm, UTC-4, every Wednesday | ||
workflow_dispatch: | ||
|
||
|
||
# Should be the same as ci-ultra-tests | ||
jobs: | ||
test-base: | ||
runs-on: ubuntu-18.04 | ||
container: huaweinoah/smarts:v0.4.13-minimal | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
- name: Setup X11 | ||
run: | | ||
/usr/bin/Xorg \ | ||
-noreset \ | ||
+extension GLX \ | ||
+extension RANDR \ | ||
+extension RENDER \ | ||
-logfile ./xdummy.log \ | ||
-config /etc/X11/xorg.conf :1 & | ||
- name: Install dependencies | ||
run: | | ||
cd ultra | ||
python3.7 -m venv .venv | ||
. .venv/bin/activate | ||
pip install --upgrade --upgrade-strategy eager pip | ||
pip install --upgrade --upgrade-strategy eager wheel | ||
pip install --upgrade -e . | ||
pip install --upgrade numpy | ||
- name: Run ultra tests | ||
run: | | ||
cd ultra | ||
. .venv/bin/activate | ||
scl scenario build-all ultra/scenarios/pool | ||
pytest -v ./tests/ | ||
test-package-via-setup: | ||
runs-on: ubuntu-18.04 | ||
container: huaweinoah/smarts:v0.4.13-minimal | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup X11 | ||
run: | | ||
/usr/bin/Xorg \ | ||
-noreset \ | ||
+extension GLX \ | ||
+extension RANDR \ | ||
+extension RENDER \ | ||
-logfile ./xdummy.log \ | ||
-config /etc/X11/xorg.conf :1 & | ||
- name: Install ultra-rl via setup.py | ||
run: | | ||
cd ultra | ||
python3.7 -m venv .venv | ||
. .venv/bin/activate | ||
pip install --upgrade pip | ||
pip install --upgrade -e . | ||
pip install --upgrade numpy | ||
- name: Run test | ||
run: | | ||
cd ultra | ||
. .venv/bin/activate | ||
scl scenario build-all ultra/scenarios/pool | ||
pytest -v ./tests/test_ultra_package.py | ||
test-package-via-wheel: | ||
runs-on: ubuntu-18.04 | ||
container: huaweinoah/smarts:v0.4.13-minimal | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Setup X11 | ||
run: | | ||
/usr/bin/Xorg \ | ||
-noreset \ | ||
+extension GLX \ | ||
+extension RANDR \ | ||
+extension RENDER \ | ||
-logfile ./xdummy.log \ | ||
-config /etc/X11/xorg.conf :1 & | ||
- name: Install ultra-rl via whl file | ||
run: | | ||
cd ultra | ||
python3.7 -m venv .venv | ||
. .venv/bin/activate | ||
pip install --upgrade --upgrade-strategy eager pip | ||
pip install --upgrade --upgrade-strategy eager wheel | ||
pip install --upgrade --upgrade-strategy eager -e . | ||
python setup.py bdist_wheel | ||
cd dist | ||
pip install $(ls . | grep ultra) | ||
pip install --upgrade numpy | ||
cd .. | ||
- name: Run test | ||
run: | | ||
cd ultra | ||
. .venv/bin/activate | ||
scl scenario build-all ultra/scenarios/pool | ||
pytest -v ./tests/test_ultra_package.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
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.