run examples after tests

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2024-08-28 13:54:15 +02:00
parent 03fbb51566
commit 6c9fa58155

View File

@ -16,14 +16,14 @@ jobs:
run: poetry run pre-commit run --all-files
- name: Install with poetry
run: poetry install --all-extras
- name: Testing
run: |
poetry run pytest -v tests
- name: Run examples
run: |
for file in examples/*.py; do
echo "Running example $file"
poetry run python "$file" || exit 1
done
- name: Testing
run: |
poetry run pytest -v tests
- name: Build with poetry
run: poetry build