Add CI for examples #2
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: Regression tests | |
on: | |
pull_request: | |
branches: [ "main" ] | |
types: [ labeled ] | |
jobs: | |
dry_run: | |
if: ${{ github.event.label.name == 'needs-ci' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install python dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Run examples | |
run: | | |
python3 example.py --dry-run | |
sqmag: | |
if: ${{ github.event.label.name == 'needs-ci' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install python dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Run examples | |
run: | | |
(cd paper/scripts && NO_LOG=Y ./slothy_sqmag.sh) | |
fft: | |
if: ${{ github.event.label.name == 'needs-ci' }} | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install python dependencies | |
run: | | |
python -m pip install -r requirements.txt | |
- name: Run examples | |
run: | | |
(cd paper/scripts && NO_LOG=Y ./slothy_fft.sh) |