add test for subnet eval #31
Workflow file for this run
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 Examples | |
on: | |
push: | |
branches: [ main, examples ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Run in all these versions of Python | |
python-version: [3.9] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' | |
- name: Display Python version | |
run: python -c "import sys; print(sys.version)" | |
- name: Install dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
python -m pip install . | |
python -m pip install pytest | |
python -m pip install syne-tune[moo] | |
python -m pip install matplotlib | |
- name: Run sinc example | |
run: | | |
python examples/sinc/sinc_nas.py | |
export PYTHONPATH=. | |
python examples/sinc/search.py |