fix workflow bug #16
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
name: Run tests | |
on: | |
push: | |
branches: | |
- "new_cleanup" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Run in all these versions of Python | |
python-version: ['3.8', '3.9', '3.10'] | |
steps: | |
# Checkout the latest code from the repo | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
# Setup which version of Python to use | |
- name: Set Up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# Install the package using the setup.py | |
- name: Install packages | |
run: pip install -r requirements.txt | |
- name: Install softwares | |
run: bash install_dependencies.sh | |
- name: setup terminal | |
run: | | |
export TERM=xterm-256color | |
export COLORTERM=truecolor | |
- name: Run perfectly sampling tests | |
run: | | |
python src/aztec/random_tiling.py | |
python src/aztec/run_domino_shuffling_animation.py | |
python src/cftp/example_random_domino_tiling.py | |
python src/cftp/example_random_lozenge_tiling.py | |
- name: Run gifmaze | |
run: | | |
cd src/gifmaze | |
echo "::group:: running gifmaze tests" | |
python example_game_of_life.py | |
python example_hilbert_curve.py | |
python example_langton_ant.py | |
python example_maze_animations.py | |
echo "::endgroup:: gifmaze tests done!" | |
- name: Run misc tests | |
run: | | |
python src/misc/Ammann-Beenker.py | |
python src/misc/deBruijn.py | |
python src/misc/domain_coloring.py | |
python src/misc/E8.py | |
python src/misc/fractaltree.py | |
python src/misc/julia.py | |
python src/misc/kaleidoscope.py | |
python src/misc/lorenz.py | |
python src/misc/mandelbrot.py | |
python src/misc/modulargroup.py | |
python src/misc/newton.py | |
python src/misc/penrose.py | |
python src/misc/ust_leaves.py | |
- name: Run polytopes tests | |
run: | | |
cd src/polytopes | |
python example_curved_polychora.py | |
python example_polytope_animation.py |