-
Notifications
You must be signed in to change notification settings - Fork 64
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor CI tests to separate z3 tests (#1126)
Configure CI matrix with "base" and "z3-solver". z3 is installed only for z3-solver config.
- Loading branch information
1 parent
3a336cc
commit ab2e81d
Showing
4 changed files
with
90 additions
and
4 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 |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
dependency: ["base", "z3-solver"] | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
@@ -38,11 +39,29 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools wheel | ||
pip install -e .[dev,cfg,z3] | ||
pip install -e .[dev,cfg] | ||
if [ "${{ matrix.dependency }}" == "z3-solver" ]; then | ||
pip install .[z3] | ||
fi | ||
- name: Run tests | ||
run: | | ||
pytest -vv --cov python_ta --cov-config=.coveragerc --cov-report lcov --ignore=tests/test_type_constraints --ignore=tests/test_type_inference tests --ignore=tests/test_debug/test_accumulation_table.py --ignore=tests/test_debug/test_recursion_table.py --ignore=tests/test_debug/test_snapshot_tracer.py | ||
pytest -vv tests/test_debug/test_accumulation_table.py tests/test_debug/test_recursion_table.py tests/test_debug/test_snapshot_tracer.py | ||
if [ "${{ matrix.dependency }}" == "z3-solver" ]; then | ||
pytest -vv --cov python_ta --cov-config=.coveragerc --cov-report lcov \ | ||
--ignore=tests/test_type_constraints \ | ||
--ignore=tests/test_type_inference \ | ||
--ignore=tests/test_debug/test_accumulation_table.py \ | ||
--ignore=tests/test_debug/test_recursion_table.py \ | ||
--ignore=tests/test_debug/test_snapshot_tracer.py | ||
pytest -vv tests/test_debug/test_accumulation_table.py tests/test_debug/test_recursion_table.py tests/test_debug/test_snapshot_tracer.py | ||
else | ||
pytest -vv --cov python_ta --cov-config=.coveragerc --cov-report lcov --exclude-z3 \ | ||
--ignore=tests/test_type_constraints \ | ||
--ignore=tests/test_type_inference \ | ||
--ignore=tests/test_debug/test_accumulation_table.py \ | ||
--ignore=tests/test_debug/test_recursion_table.py \ | ||
--ignore=tests/test_debug/test_snapshot_tracer.py | ||
pytest -vv tests/test_debug/test_accumulation_table.py tests/test_debug/test_recursion_table.py tests/test_debug/test_snapshot_tracer.py | ||
fi | ||
- name: Upload test coverage to coveralls.io | ||
uses: coverallsapp/[email protected] | ||
env: | ||
|
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