Skip to content

Commit

Permalink
only 1 test to debug removing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Simnol22 committed Dec 16, 2022
1 parent 3220a15 commit 573dd68
Showing 1 changed file with 1 addition and 286 deletions.
287 changes: 1 addition & 286 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,70 +13,6 @@ on:
workflow_dispatch:

jobs:
# pre-commit:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# - run: pip install pre-commit
# - run: pre-commit --version
# - run: pre-commit install
# - run: pre-commit run --all-files
# pretest:
# runs-on: ubuntu-latest
# strategy:
# matrix:
# toxenv: [pylint, doc8, docs]
#
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Run pre-tests with Tox
# run: tox -e ${{ matrix.toxenv }}
#
# test-dashboard-build:
# needs: pretest
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: 16
# - name: Compile Dashboard
# run: |
# cd dashboard/src
# yarn
# yarn build
# rm -rf ../build
# mv build ..
# cd ../../
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -e .[test]
# - name: Get gecko driver
# run: |
# wget https://github.com/mozilla/geckodriver/releases/download/v0.31.0/geckodriver-v0.31.0-linux64.tar.gz
# tar -xvf geckodriver-v0.31.0-linux64.tar.gz
# export PATH=$PATH:$(pwd)
# - name: Launch backend
# run: orion serve -c .github/workflows/orion/orion_config.yaml &
# - name: Launch frontend
# run: orion frontend &
# - name: Test frontend
# run: pytest tests/functional/serving/test_frontend.py

test:
needs: [pre-commit, pretest]
Expand All @@ -85,7 +21,7 @@ jobs:
max-parallel: 4
matrix:
platform: [ubuntu-latest]
python-version: [3.7] #, 3.8, 3.9]
python-version: [3.7]
env:
PLATFORM: ${{ matrix.platform }}
steps:
Expand All @@ -108,224 +44,3 @@ jobs:
env_vars: PLATFORM,PYTHON
name: codecov-umbrella
fail_ci_if_error: false

# test-long-algos:
# needs: [pre-commit, pretest]
# runs-on: ${{ matrix.platform }}
# strategy:
# matrix:
# platform: [ubuntu-latest]
# python-version: [3.7, 3.8, 3.9]
# algo: [nevergrad, hebo, ax]
# env:
# PLATFORM: ${{ matrix.platform }}
# steps:
# - uses: actions/checkout@v1
#
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
#
# - name: Test long algorithms with tox
# run: tox -e algo -- tests/unittests/algo/long/${{ matrix.algo }}
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# flags: unittests
# env_vars: PLATFORM,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: false
#
# test_no_extras:
# needs: [pre-commit, pretest]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Test with tox
# run: tox -e py
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# flags: unittests
# env_vars: PLATFORM,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: false
# mongodb:
# needs: [pre-commit, pretest]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Setup MongoDB
# uses: supercharge/[email protected]
# with:
# mongodb-version: 4.2
# - name: Configure MongoDB
# run: mongo orion_test --eval 'db.createUser({user:"user",pwd:"pass",roles:["readWrite"]});'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Test with tox
# run: tox -e mongodb
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# flags: backward
# env_vars: PLATFORM,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: false
# backward-compatibility:
# needs: [pre-commit, pretest]
# runs-on: ubuntu-latest
# strategy:
# max-parallel: 2
# matrix:
# orion_db_type: [mongodb, pickleddb]
# env:
# ORION_DB_TYPE: ${{ matrix.orion_db_type }}
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Setup MongoDB
# uses: supercharge/[email protected]
# with:
# mongodb-version: 4.2
# - name: Configure MongoDB
# run: mongo orion_test --eval 'db.createUser({user:"user",pwd:"pass",roles:["readWrite"]});'
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Test with tox
# run: tox -e backward-compatibility
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# file: ./coverage.xml
# flags: backward
# env_vars: PLATFORM,PYTHON
# name: codecov-umbrella
# fail_ci_if_error: false
# pypi:
# needs: [test, backward-compatibility, test-long-algos, mongodb, test_no_extras, test-dashboard-build]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install tox tox-gh-actions
# - name: Test packaging
# run: tox -e packaging
# - name: Build
# run: tox -e build
# - name: Test dashboard build deployment on normal install
# run: |
# # Get package path
# export ORION_PACKAGE=$( realpath `find dist/ -type f` )
# echo Package path: ${ORION_PACKAGE}
# # Move to another folder (to prevent any confusion at installation with repo folder)
# cd ~
# echo Normal install
# pip install ${ORION_PACKAGE}
# # Get prefix
# export ORION_PREFIX=$( python -c "import sys; print(sys.prefix);" )
# echo Check if dashboard build is installed
# if ( [ -d "${ORION_PREFIX}/orion-dashboard" ] ); then true; else false; fi
# if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then true; else false; fi
# if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then true; else false; fi
# echo Check if frontend script can find dashboard build
# python -c "from orion.core.cli.frontend import get_dashboard_build_path; get_dashboard_build_path();"
# echo Clean-up
# pip uninstall -y orion
# echo Check if dashboard build is correctly removed
# # NB: It seems orion-dashboard build is not deleted,
# # but it should be empty after uninstall
# if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then false; fi
# if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then false; fi
# echo End
# cd -
# - name: Test dashboard build deployment on user install
# run: |
# # Get package path
# export ORION_PACKAGE=$( realpath `find dist/ -type f` )
# echo Package path: ${ORION_PACKAGE}
# # Move to another folder (to prevent any confusion at installation with repo folder)
# cd ~
# echo User install
# pip install --user ${ORION_PACKAGE}
# # Get prefix
# export ORION_PREFIX=$( python -c "import site; print(site.USER_BASE);" )
# echo Check if dashboard build is installed
# if ( [ -d "${ORION_PREFIX}/orion-dashboard" ] ); then true; else false; fi
# if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then true; else false; fi
# if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then true; else false; fi
# echo Check if frontend script can find dashboard build
# python -c "from orion.core.cli.frontend import get_dashboard_build_path; get_dashboard_build_path();"
# echo Clean-up
# pip uninstall -y orion
# echo Check if dashboard build is correctly removed
# # NB: In user install case, it seems folder orion-dashboard itself is not deleted,
# # but it should be empty after uninstall
# if ( [ -f "${ORION_PREFIX}/orion-dashboard/build/index.html" ] ); then false; fi
# if ( ls ${ORION_PREFIX}/orion-dashboard/build/static/js/main.*.js ); then false; fi
# echo End
# cd -
# - name: Publish distribution 📦 to Test PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.test_pypi_password }}
# repository_url: https://test.pypi.org/legacy/
# - name: Publish distribution 📦 to PyPI
# if: startsWith(github.ref, 'refs/tags')
# uses: pypa/gh-action-pypi-publish@master
# with:
# user: __token__
# password: ${{ secrets.pypi_password }}
# conda:
# needs: [test, backward-compatibility, test-long-algos, test-dashboard-build]
# runs-on: ubuntu-latest
# env:
# ANACONDA_TOKEN: ${{ secrets.anaconda_token }}
# steps:
# - uses: actions/checkout@v1
# - name: Set up Python 3.9
# uses: actions/setup-python@v2
# with:
# python-version: 3.9
# - name: Build conda
# run: ./conda/ci_build.sh
# - name: Publish distribution 📦 to Conda
# if: startsWith(github.ref, 'refs/tags')
# run: ./conda/upload.sh
#

0 comments on commit 573dd68

Please sign in to comment.