Skip to content

Commit

Permalink
Comment out tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
btjanaka committed Sep 10, 2023
1 parent b89d3f5 commit 362151c
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,32 +27,32 @@ jobs:
- uses: pre-commit/[email protected]
# 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:
Expand Down
42 changes: 21 additions & 21 deletions tests/examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 362151c

Please sign in to comment.