Skip to content

Commit

Permalink
run examples in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Remi-Gau committed Feb 16, 2024
1 parent 1a2b14b commit 9ba2567
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/run_examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
---
name: Run examples

on:
push:
branches:
- master
pull_request:
branches:
- '*'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
black:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [comparedesigns.py, comparison_neurodesign.py, JSS_example.py, optimisation.py]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
allow-prereleases: false
- name: Install neurodesign
run: python -m pip install .
- name: Run example ${{ matrix.example }}
run: python examples/${{ matrix.example }}

0 comments on commit 9ba2567

Please sign in to comment.