Skip to content

Commit

Permalink
move examples tests into separate build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
lbeurerkellner committed Jun 12, 2024
1 parent a968ca0 commit 2b4ec19
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ permissions:

jobs:
test-all-extras:
name: Test with all extra dependencies (expected to include all tests)
name: Test with all extra dependencies
# (expected to include all tests)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -19,12 +20,20 @@ jobs:
run: rye sync
- name: Run tests
run: rye test
test-examples:
name: Test invariant.examples
- uses: actions/checkout@v4
- name: Install the latest version of rye
uses: eifinger/setup-rye@v3
- name: Install dependencies
run: rye sync # requires all extras
- name: Run invariant.examples
env:
OPENAI_API_KEY: ${{ secrets.CI_OPENAI_API_KEY }}
run: rye run python -m unittest discover -s invariant/examples -p "*_example.py"
test-no-extras:
name: Test without extra dependencies (some tests will be skipped, but this is the default setup when users install the package)
name: Test without extra dependencies
# (some tests will be skipped, but this is the default setup when users install the package)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 2b4ec19

Please sign in to comment.