Skip to content

Commit ce618ee

Browse files
committed
ci: change numpy constraints
1 parent 53de916 commit ce618ee

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,17 @@ jobs:
3434
restore-keys: |
3535
${{ runner.os }}-pip-
3636
${{ runner.os }}-
37+
- name: Upgrade setuptools
38+
if: matrix.python-version == 3.12
39+
run: |
40+
# workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
41+
pip install --upgrade setuptools
3742
- name: Install dependencies py3.7
3843
if: matrix.python-version == 3.7
3944
run: pip install -r requirements-dev-3.7.txt
4045
- name: Install dependencies
4146
if: matrix.python-version != 3.7
42-
run: |
43-
# workaround for 3.12, SEE: https://github.com/pypa/setuptools/issues/3661#issuecomment-1813845177
44-
pip install --upgrade setuptools
45-
pip install -r requirements-dev.txt
47+
run: pip install -r requirements-dev.txt
4648
- name: Install Numpy Dev
4749
if: ${{ matrix.numpy-version }}
4850
run: pip install -I --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple "numpy>=0.0.dev0"

requirements-dev.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ bump2version==1.0.1
44
jsonpickle==3.0.2
55
coverage==6.5.0
66
ipdb==0.13.13
7-
numpy~=1.24.4
7+
numpy>=1.24.4,<2.0.0
88
pytest==7.4.2
99
pytest-cov==4.1.0
1010
python-dotenv==0.21.0

0 commit comments

Comments
 (0)