Skip to content

Commit

Permalink
Merge pull request #1 from nennigb/fix-test-np2
Browse files Browse the repository at this point in the history
Update CI with np2 breaking change and python new version.
  • Loading branch information
nennigb committed Jul 22, 2024
2 parents b2ddbd9 + fbe1824 commit 37cb192
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: polze_env
python-version: 3.9
python-version: "3.11"
auto-activate-base: false
miniconda-version: "latest"
auto-update-conda: true
Expand Down
5 changes: 5 additions & 0 deletions polze/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@
import cmath
import sys

# Numpy 2.0 change default printing options making doctest failing.
# https://numpy.org/neps/nep-0051-scalar-representation.html
# Use legacy mode for testing
if np.lib.NumpyVersion(np.__version__) >= '2.0.0b1':
np.set_printoptions(legacy="1.25")

# Define a non vectorized function
# For parallel processing we need a function defined outside the class.
Expand Down

0 comments on commit 37cb192

Please sign in to comment.