2022-01-11 17:28:50 +00:00
|
|
|
# Thi workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
|
|
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
|
|
|
|
|
|
name: examples
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
paths:
|
2023-06-20 14:39:13 +00:00
|
|
|
- "examples/**.py"
|
2022-01-11 17:28:50 +00:00
|
|
|
jobs:
|
|
|
|
cpu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-06-20 14:39:13 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-10-25 13:09:14 +00:00
|
|
|
- name: Set up Python 3.11
|
2023-06-20 14:39:13 +00:00
|
|
|
uses: actions/setup-python@v4
|
|
|
|
with:
|
2023-10-25 13:09:14 +00:00
|
|
|
python-version: "3.11"
|
2023-06-20 14:39:13 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install .[all]
|
|
|
|
- name: Run examples
|
|
|
|
run: |
|
|
|
|
./tests/test_examples.sh examples/
|