Skip to content

Commit 8a59f59

Browse files
authored
Fix CI (#52)
* Pin Python version for now in CI * Mmh * Up * Up * Up
1 parent 872c938 commit 8a59f59

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,15 @@ jobs:
2424
with:
2525
environment-name: test-env
2626
create-args: >-
27-
python=3.13
27+
python
2828
pip
29+
pandas
30+
numpy
31+
xarray
32+
pytest
2933
3034
- name: Install
31-
run: pip install eager ".[test]" coveralls pytest-cov
35+
run: pip install eager . coveralls pytest-cov
3236

3337
- name: Test coverage
3438
run: pytest --cov=traittypes traittypes

setup.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,7 @@
8383

8484
extras_require = setuptools_args['extras_require'] = {
8585
'test': [
86-
# TestIntArray.test_bad_values fails with numpy>=1.16.0
87-
'numpy<1.16.0',
88-
86+
'numpy',
8987
'pandas',
9088
'xarray',
9189
'pytest', # traitlets[test] require this

traittypes/tests/test_traittypes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,12 @@
1717

1818

1919
class IntArrayTrait(HasTraits):
20-
value = Array().tag(dtype=np.int)
20+
value = Array().tag(dtype=np.int32)
2121

2222

2323
class TestIntArray(TraitTestBase):
2424
"""
25-
Test dtype validation with a ``dtype=np.int``
25+
Test dtype validation with a ``dtype=np.int32``
2626
"""
2727
obj = IntArrayTrait()
2828

0 commit comments

Comments
 (0)