-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Long-duration determinism test (#479)
* Added long-duration determinism test with run time ~5 hours.
- Loading branch information
1 parent
e432ced
commit fd9fa44
Showing
6 changed files
with
112 additions
and
56 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 |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: SMARTS CI Long Determinism | ||
|
||
on: | ||
schedule: | ||
- cron: '0 23 * * 6' | ||
# Time is in UTC | ||
# Runs at 11.00pm, UTC , every Saturday | ||
# Runs at 6.00pm, UTC-5, every Saturday | ||
workflow_dispatch: | ||
|
||
env: | ||
venv_dir: .venv | ||
|
||
jobs: | ||
test_learning: | ||
runs-on: ubuntu-18.04 | ||
container: huaweinoah/smarts:v0.4.3-pre | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: develop | ||
- name: Setup package | ||
run: | | ||
/usr/bin/Xorg \ | ||
-noreset \ | ||
+extension GLX \ | ||
+extension RANDR \ | ||
+extension RENDER \ | ||
-logfile ./xdummy.log \ | ||
-config /etc/X11/xorg.conf :1 & | ||
cd $GITHUB_WORKSPACE | ||
python3.7 -m venv ${{env.venv_dir}} | ||
. ${{env.venv_dir}}/bin/activate | ||
pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install -e .[train,test] | ||
- name: Verify long determinism | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
. ${{env.venv_dir}}/bin/activate | ||
make test-long-determinism |
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