Skip to content

Commit

Permalink
Add workflow for examples (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka authored Sep 4, 2024
1 parent ba9a8c3 commit d521a1c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Examples

on:
workflow_dispatch:
schedule: # Run once a week to detect any regressions
- cron: '0 0 * * 1'

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
example: [
"dps_example.py",
"example_decorators.py",
"example_prallelization.py",
"example.py",
"Eijgenraam/eijgenram.py"]
python-version: ["3.12"]

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: Install dependencies
run: |
pip install .[test]
- name: Run example
run: |
python examples/${{ matrix.example }}

0 comments on commit d521a1c

Please sign in to comment.