From 362151c252e2719e2eb7034ce4f205bf2f63002f Mon Sep 17 00:00:00 2001 From: Bryon Tjanaka Date: Sun, 10 Sep 2023 07:20:15 -0700 Subject: [PATCH] Comment out tests for now --- .github/workflows/testing.yml | 52 +++++++++++++++++------------------ tests/examples.sh | 42 ++++++++++++++-------------- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/.github/workflows/testing.yml b/.github/workflows/testing.yml index 422d82973..3a38c69c0 100644 --- a/.github/workflows/testing.yml +++ b/.github/workflows/testing.yml @@ -27,32 +27,32 @@ jobs: - uses: pre-commit/action@v3.0.0 # The visualize extra is only tested with pinned reqs because different # Matplotlib versions have slightly different outputs. - test: - strategy: - max-parallel: 12 # All in parallel. - matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: ["3.8", "3.9", "3.10", "3.11"] - exclude: - # To cut down on runtime since Mac seems to take the longest. - - os: macos-latest - python-version: "3.9" - - os: macos-latest - python-version: "3.10" - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Upgrade pip - run: python -m pip install --upgrade pip - - name: Install core deps - run: pip install .[dev] - - name: Test core - run: > - pytest tests/archives tests/emitters tests/schedulers + # test: + # strategy: + # max-parallel: 12 # All in parallel. + # matrix: + # os: [ubuntu-latest, macos-latest, windows-latest] + # python-version: ["3.8", "3.9", "3.10", "3.11"] + # exclude: + # # To cut down on runtime since Mac seems to take the longest. + # - os: macos-latest + # python-version: "3.9" + # - os: macos-latest + # python-version: "3.10" + # runs-on: ${{ matrix.os }} + # steps: + # - uses: actions/checkout@v4 + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ matrix.python-version }} + # - name: Upgrade pip + # run: python -m pip install --upgrade pip + # - name: Install core deps + # run: pip install .[dev] + # - name: Test core + # run: > + # pytest tests/archives tests/emitters tests/schedulers pin: runs-on: ubuntu-latest steps: diff --git a/tests/examples.sh b/tests/examples.sh index dcfd4f62e..68e0b658b 100644 --- a/tests/examples.sh +++ b/tests/examples.sh @@ -30,27 +30,27 @@ export OPENBLAS_NUM_THREADS=1 export OMP_NUM_THREADS=1 # sphere.py -install_deps examples/sphere.py -SPHERE_OUTPUT="${TMPDIR}/sphere_output" -python examples/sphere.py map_elites --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py line_map_elites --itrs 10 --outdir "${SPHERE_OUTPUT}" - -# CVT excluded since it takes a while to build the archive. -# python examples/sphere.py cvt_map_elites 10 "${SPHERE_OUTPUT}" -# python examples/sphere.py line_cvt_map_elites 10 "${SPHERE_OUTPUT}" - -python examples/sphere.py cma_me_imp --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_me_imp_mu --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_me_rd --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_me_rd_mu --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_me_opt --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_me_mixed --itrs 10 --outdir "${SPHERE_OUTPUT}" - -python examples/sphere.py cma_mega --dim 20 --itrs 10 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_mega_adam --dim 20 --itrs 10 --outdir "${SPHERE_OUTPUT}" - -python examples/sphere.py cma_mae --dim 20 --itrs 10 --learning_rate 0.01 --outdir "${SPHERE_OUTPUT}" -python examples/sphere.py cma_maega --dim 20 --itrs 10 --learning_rate 0.01 --outdir "${SPHERE_OUTPUT}" +# install_deps examples/sphere.py +# SPHERE_OUTPUT="${TMPDIR}/sphere_output" +# python examples/sphere.py map_elites --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py line_map_elites --itrs 10 --outdir "${SPHERE_OUTPUT}" + +# # CVT excluded since it takes a while to build the archive. +# # python examples/sphere.py cvt_map_elites 10 "${SPHERE_OUTPUT}" +# # python examples/sphere.py line_cvt_map_elites 10 "${SPHERE_OUTPUT}" + +# python examples/sphere.py cma_me_imp --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_me_imp_mu --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_me_rd --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_me_rd_mu --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_me_opt --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_me_mixed --itrs 10 --outdir "${SPHERE_OUTPUT}" + +# python examples/sphere.py cma_mega --dim 20 --itrs 10 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_mega_adam --dim 20 --itrs 10 --outdir "${SPHERE_OUTPUT}" + +# python examples/sphere.py cma_mae --dim 20 --itrs 10 --learning_rate 0.01 --outdir "${SPHERE_OUTPUT}" +# python examples/sphere.py cma_maega --dim 20 --itrs 10 --learning_rate 0.01 --outdir "${SPHERE_OUTPUT}" # lunar_lander.py install_deps examples/lunar_lander.py