File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,31 @@ jobs:
122
122
fail_ci_if_error : true
123
123
token : ${{ secrets.CODECOV_TOKEN }}
124
124
125
+ fileformats-test :
126
+ runs-on : ubuntu-latest
127
+ strategy :
128
+ matrix :
129
+ python-version : ['3.8', '3.12']
130
+ steps :
131
+ - uses : actions/checkout@v3
132
+ - name : Revert version to most recent tag on upstream update
133
+ if : github.event_name == 'repository_dispatch'
134
+ run : git checkout $(git tag -l | tail -n 1 | awk -F post '{print $1}')
135
+ - name : Set up Python ${{ matrix.python-version }}
136
+ uses : actions/setup-python@v4
137
+ with :
138
+ python-version : ${{ matrix.python-version }}
139
+ - name : Install build dependencies
140
+ run : |
141
+ python -m pip install --upgrade pip
142
+ - name : Install task package
143
+ run : |
144
+ pip install "./related-packages/fileformats[test]" "./related-packages/fileformats-extras[test]"
145
+ python -c "import fileformats.medimage_fsl as m; print(f'{m.__name__} {m.__version__} @ {m.__file__}')"
146
+ - name : Test fileformats with pytest
147
+ run : >-
148
+ pytest ./related-packages -sv --cov fileformats.medimage_fsl
149
+ --cov fileformats.extras.medimage_fsl --cov-report xml .
125
150
126
151
deploy-fileformats :
127
152
needs : [build, test, fileformats-test]
You can’t perform that action at this time.
0 commit comments