Skip to content

Commit 4fb4f78

Browse files
authored
Merge pull request #92 from rmarkello/actions
[TEST] Fix GHA
2 parents e8fabe9 + c39d9cc commit 4fb4f78

File tree

5 files changed

+14
-42
lines changed

5 files changed

+14
-42
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: netneurotools tests
22

33
on: [push, pull_request]
44

5+
defaults:
6+
run:
7+
shell: bash
8+
59
jobs:
610
check_skip:
711
runs-on: ubuntu-latest
@@ -25,6 +29,7 @@ jobs:
2529
matrix:
2630
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
2731
python-version: ['3.6', '3.7', '3.8', '3.9']
32+
architecture: ['x64', 'x86']
2833
install: ['setup']
2934
check: ['test']
3035
optional-depends: ['']
@@ -51,7 +56,7 @@ jobs:
5156
optional-depends: ''
5257
- os: ubuntu-latest
5358
python-version: 3.8
54-
install: bdist_wheel
59+
install: wheel
5560
check: test
5661
optional-depends: ''
5762
exclude:

.travis.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.

netneurotools/stats.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ def gen_spinsamples(coords, hemiid, n_rotate=1000, check_duplicates=True,
611611
array([[0],
612612
[0],
613613
[2],
614-
[3]], dtype=int32)
614+
[3]])
615615
616616
While this is reasonable in most circumstances, if you feel incredibly
617617
strongly about having a perfect "permutation" (i.e., all indices appear
@@ -623,13 +623,13 @@ def gen_spinsamples(coords, hemiid, n_rotate=1000, check_duplicates=True,
623623
array([[1],
624624
[0],
625625
[2],
626-
[3]], dtype=int32)
626+
[3]])
627627
>>> nnstats.gen_spinsamples(coords, hemi, n_rotate=1, seed=1,
628628
... method='hungarian', check_duplicates=False)
629629
array([[0],
630630
[1],
631631
[2],
632-
[3]], dtype=int32)
632+
[3]])
633633
634634
Note that setting this parameter may increase the runtime of the function
635635
(especially for `method='hungarian'`). Refer to [ST1]_ for information on
@@ -698,11 +698,9 @@ def gen_spinsamples(coords, hemiid, n_rotate=1000, check_duplicates=True,
698698
.format(np.unique(hemiid)))
699699

700700
# empty array to store resampling indices
701-
# int32 should be enough; if you're ever providing `coords` with more than
702-
# 2147483647 rows please reconsider your life choices
703-
spinsamples = np.zeros((len(coords), n_rotate), dtype='int32')
701+
spinsamples = np.zeros((len(coords), n_rotate), dtype=int)
704702
cost = np.zeros((len(coords), n_rotate))
705-
inds = np.arange(len(coords), dtype='int32')
703+
inds = np.arange(len(coords), dtype=int)
706704

707705
# generate rotations and resampling array!
708706
msg, warned = '', False

netneurotools/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def run(cmd, env=None, return_proc=False, quiet=False):
149149
>>> p = utils.run('echo "hello world"', return_proc=True, quiet=True)
150150
>>> p.returncode
151151
0
152-
>>> p.stdout
152+
>>> p.stdout # doctest: +SKIP
153153
'hello world\\n'
154154
"""
155155

setup.cfg

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ plotting =
4444
pysurfer
4545
numba =
4646
numba
47-
linting =
47+
style =
4848
flake8
4949
test =
5050
coverage
@@ -54,7 +54,7 @@ all =
5454
%(doc)s
5555
%(plotting)s
5656
%(numba)s
57-
%(linting)s
57+
%(style)s
5858
%(test)s
5959

6060
[options.package_data]

0 commit comments

Comments
 (0)