Skip to content

Commit

Permalink
Merge pull request #95 from vil02/63-remove-run_all_examples_no_poetrysh
Browse files Browse the repository at this point in the history
chore: remove `run_all_examples_no_poetry.sh`
  • Loading branch information
vil02 authored Sep 9, 2024
2 parents 664872c + 79b6c97 commit 9630ecf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check_examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ jobs:
- name: Run examples
run: |
./run_all_examples_no_poetry.sh
./run_all_examples.sh --no-poetry
...
12 changes: 11 additions & 1 deletion run_all_examples.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,15 @@

set -euo pipefail

use_poetry=true

if [[ "${1:-}" == "--no-poetry" ]]; then
use_poetry=false
fi

cd examples/
find . -name "*.py" -exec poetry run python3 {} +
if $use_poetry; then
find . -name "*.py" -exec poetry run python3 {} +
else
find . -name "*.py" -exec python3 {} +
fi
6 changes: 0 additions & 6 deletions run_all_examples_no_poetry.sh

This file was deleted.

0 comments on commit 9630ecf

Please sign in to comment.