-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT add python 3.11 to test (#168)
With new python update, we create this PR to test whether the scimath package is compatible with python 3.11. Closes #163 --------- Co-authored-by: Chengyu Liu <[email protected]>
- Loading branch information
1 parent
d7c8b54
commit e9c2349
Showing
1 changed file
with
38 additions
and
0 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,38 @@ | ||
name: Test with PyPI | ||
|
||
on: [pull_request, workflow_dispatch] | ||
|
||
env: | ||
PYTHONUNBUFFERED: 1 | ||
|
||
jobs: | ||
|
||
# Test against PyPI packages | ||
test-with-pypi: | ||
strategy: | ||
matrix: | ||
os: ['ubuntu-latest', 'macos-latest', 'windows-latest'] | ||
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] | ||
|
||
runs-on: ${{ matrix.os }} | ||
steps: | ||
- name: Clone the SciMath source | ||
uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install package under test | ||
run: python -m pip install . | ||
- name: Run tests (Ubuntu) | ||
if: matrix.os == 'ubuntu-latest' | ||
run: | | ||
mkdir testdir | ||
cd testdir | ||
xvfb-run -a python -X faulthandler -m unittest discover -v scimath | ||
- name: Run tests (not Ubuntu) | ||
if: matrix.os != 'ubuntu-latest' | ||
run: | | ||
mkdir testdir | ||
cd testdir | ||
python -X faulthandler -m unittest discover -v scimath |