File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ pull_request :
5
+ push :
6
+
7
+ jobs :
8
+ test :
9
+ runs-on : ubuntu-latest
10
+ env :
11
+ BOTO_CONFIG : /tmp/nowhere
12
+ DATALAD_TESTS_SSH : ' 1'
13
+ strategy :
14
+ fail-fast : false
15
+ matrix :
16
+ python-version :
17
+ - ' 3.7'
18
+ - ' 3.8'
19
+ - ' 3.9'
20
+ # causes issues, disabled for now
21
+ # - '3.10'
22
+ steps :
23
+ - name : Check out repository
24
+ uses : actions/checkout@v3
25
+
26
+ - name : Set up Python
27
+ uses : actions/setup-python@v4
28
+ with :
29
+ python-version : ${{ matrix.python-version }}
30
+
31
+ - name : Install git-annex
32
+ run : |
33
+ # The ultimate one-liner setup for NeuroDebian repository
34
+ bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
35
+ sudo apt-get update -qq
36
+ sudo apt-get install git-annex-standalone dcm2niix
37
+
38
+ - name : Install dependencies
39
+ run : |
40
+ python -m pip install --upgrade pip wheel
41
+ pip install -r dev-requirements.txt
42
+ pip install requests # below installs pyld but that assumes we have requests already
43
+ pip install datalad
44
+ pip install coverage pytest
45
+
46
+ - name : Configure Git identity
47
+ run : |
48
+ git config --global user.email "[email protected] "
49
+ git config --global user.name "GitHub Almighty"
50
+
51
+ - name : Run tests with coverage
52
+ run : coverage run `which pytest` -s -v heudiconv
53
+
54
+ - name : Upload coverage to Codecov
55
+ uses : codecov/codecov-action@v2
56
+ with :
57
+ fail_ci_if_error : false
58
+
59
+ # vim:set et sts=2:
You can’t perform that action at this time.
0 commit comments