Skip to content

Commit

Permalink
Disable Pull Request only ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Oct 16, 2020
1 parent 7b402be commit 3caa770
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/ci-pull-request.yml
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

0 comments on commit 3caa770

Please sign in to comment.