-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5328c32
commit fa3ece5
Showing
258 changed files
with
7,180 additions
and
5,333 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Run Tests | ||
|
||
on: | ||
push: | ||
branches: [ "main", "ci-testing", "merge_testing_analyzer" ] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
test-examples: | ||
name: Test invariant.examples | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12.2 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.12.2" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install --with dev | ||
- name: Run invariant.examples | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.CI_OPENAI_API_KEY }} | ||
run: | | ||
poetry run python -m unittest discover -s invariant/analyzer/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) | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12.2 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.12.2" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install --without dev | ||
- name: Run tests | ||
run: | | ||
poetry run pytest invariant/tests/analyzer |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.