-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Test with numpy 2.0 rc1 * Remove Python 3.8 from numpy 2.0 tests * specify dtype * fix new style np.unique output with squeeze * fix doctest failures due to np.float64(...) print * add separate numpy2 workflow
- Loading branch information
Showing
6 changed files
with
61 additions
and
9 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 |
---|---|---|
|
@@ -38,4 +38,4 @@ jobs: | |
mypy skfem | ||
- name: Run pytest | ||
run: | | ||
pytest | ||
pytest |
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,42 @@ | ||
name: tests with numpy 2 | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: master | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.9, '3.10', 3.11, 3.12] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
pip install --pre numpy==2.0.0rc1 | ||
pip install . | ||
- name: Run flake8 | ||
run: | | ||
flake8 skfem | ||
- name: Run sphinx build | ||
run: | | ||
sphinx-build -W -a -b html docs docs/_build | ||
- name: Run sphinx doctests | ||
run: | | ||
sphinx-build -W -a -b doctest docs docs/_build | ||
- name: Run mypy | ||
run: | | ||
mypy skfem | ||
- name: Run pytest | ||
run: | | ||
pytest -k 'not TestEx09 and not TestEx32 and not TestEx49' |
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 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