-
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.
- Loading branch information
Showing
1 changed file
with
43 additions
and
43 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,46 +1,46 @@ | ||
# name: SMARTS CI Pull Request | ||
name: SMARTS CI Pull Request | ||
|
||
# on: | ||
# push: | ||
# branches-ignore: | ||
# - master | ||
on: | ||
push: | ||
branches: | ||
- disabled | ||
|
||
# env: | ||
# venv_dir: .venv | ||
# jobs: | ||
# test-benchmark: | ||
# runs-on: ubuntu-18.04 | ||
env: | ||
venv_dir: .venv | ||
jobs: | ||
test-benchmark: | ||
runs-on: ubuntu-18.04 | ||
|
||
# container: | ||
# image: gitlab.smartsai.xyz:5050/smarts/smarts-dockerfiles/smarts-base | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/[email protected] | ||
# - name: Install SMARTS 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 "${venv_dir}" | ||
# . "${venv_dir}/bin/activate" | ||
# pip install --upgrade pip | ||
# pip install wheel | ||
# pip install -r requirements.txt | ||
# pip install -e .[train] | ||
# - name: SMARTS Benchmark | ||
# run: | | ||
# cd $GITHUB_WORKSPACE | ||
# . "${venv_dir}/bin/activate" | ||
# apt-get update && apt-get -y install git | ||
# git checkout $(git log --merges -n 1 --format=format:"%H") | ||
# scl scenario build-all --clean ./scenarios | ||
# pytest --benchmark-save=previous --benchmark-min-rounds=10 --benchmark-timer=time.process_time ./smarts/env/tests/test_benchmark.py | ||
# git checkout - | ||
# pip install -e .[train] | ||
# scl scenario build-all --clean ./scenarios | ||
# pytest --benchmark-compare=0001_previous --benchmark-compare-fail=mean:10% --benchmark-min-rounds=10 --benchmark-timer=time.process_time ./smarts/env/tests/test_benchmark.py | ||
container: | ||
image: gitlab.smartsai.xyz:5050/smarts/smarts-dockerfiles/smarts-base | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- name: Install SMARTS 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 "${venv_dir}" | ||
. "${venv_dir}/bin/activate" | ||
pip install --upgrade pip | ||
pip install wheel | ||
pip install -r requirements.txt | ||
pip install -e .[train] | ||
- name: SMARTS Benchmark | ||
run: | | ||
cd $GITHUB_WORKSPACE | ||
. "${venv_dir}/bin/activate" | ||
apt-get update && apt-get -y install git | ||
git checkout $(git log --merges -n 1 --format=format:"%H") | ||
scl scenario build-all --clean ./scenarios | ||
pytest --benchmark-save=previous --benchmark-min-rounds=10 --benchmark-timer=time.process_time ./smarts/env/tests/test_benchmark.py | ||
git checkout - | ||
pip install -e .[train] | ||
scl scenario build-all --clean ./scenarios | ||
pytest --benchmark-compare=0001_previous --benchmark-compare-fail=mean:10% --benchmark-min-rounds=10 --benchmark-timer=time.process_time ./smarts/env/tests/test_benchmark.py |