1
1
version : 2
2
2
3
3
jobs :
4
- test_python :
5
- docker :
6
- - image : continuumio/miniconda3
7
- environment :
8
- BASH_ENV : ' /root/.bashrc'
9
- steps :
10
- - checkout
11
- - run :
12
- name : setup conda
13
- command : |
14
- conda create -n testenv Python=3.10
15
- conda init
16
- - run : git config --global user.email "bids.maintenance@gmail.com"
17
- - run : git config --global user.name "bids-maintenance"
18
- - run :
19
- name : install datalad
20
- command : |
21
- conda activate testenv
22
- conda install -c conda-forge git-annex
23
- pip install pytest flake8 pydocstyle datalad
24
- - run :
25
- name : test python
26
- command : |
27
- conda activate testenv
28
- cd bids-validator
29
- pip install .
30
- pytest --doctest-modules bids_validator
31
- flake8 bids_validator
32
- pydocstyle bids_validator/bids_validator.py
33
4
test :
34
5
docker :
35
6
- image : node:18-alpine
@@ -104,63 +75,6 @@ jobs:
104
75
- ./.next/cache
105
76
- store_artifacts :
106
77
path : ~/web_version
107
- pypi_precheck :
108
- docker :
109
- - image : alpine:3.13
110
- steps :
111
- - run : apk --no-cache add ca-certificates git openssh-client rust cargo
112
- - checkout
113
- - run :
114
- name : Set up environment
115
- command : apk --no-cache add build-base libffi-dev libressl-dev
116
- - run :
117
- name : Install Python 3 and build tools
118
- command : apk --no-cache add python3 python3-dev
119
- - run :
120
- name : Update Python install tools
121
- command : |
122
- python3 -m ensurepip
123
- python3 -m pip install --upgrade pip build
124
- - run :
125
- name : Install twine, readme renderer
126
- command : python3 -m pip install twine readme_renderer[md]
127
- - run :
128
- name : Check build and readme rendering
129
- command : |
130
- python3 -m build bids-validator/
131
- twine check bids-validator/dist/*
132
- - run :
133
- name : Check sdist installation
134
- command : |
135
- cd bids-validator
136
- python3 -m venv .venv
137
- source .venv/bin/activate
138
- python3 --version
139
- python3 -m pip install --upgrade pip
140
- python3 -m pip install dist/*.tar.gz
141
- pypi_deployment :
142
- docker :
143
- - image : alpine:3.13
144
- steps :
145
- - run : apk --no-cache add ca-certificates git openssh-client rust cargo
146
- - checkout
147
- - run :
148
- name : Set up environment
149
- command : apk --no-cache add build-base libffi-dev libressl-dev
150
- - run :
151
- name : Install Python 3 and build tools
152
- command : apk --no-cache add python3 python3-dev
153
- - run :
154
- name : Update Python install tools
155
- command : |
156
- python3 -m ensurepip
157
- python3 -m pip install --upgrade pip build
158
- - run :
159
- name : Install twine, readme renderer
160
- command : python3 -m pip install twine readme_renderer[md]
161
- - run : git checkout -f $CIRCLE_TAG
162
- - run : python3 -m build bids-validator/
163
- - run : python3 -m twine upload bids-validator/dist/*
164
78
gh-pages_deployment :
165
79
docker :
166
80
- image : node:18-alpine
@@ -213,12 +127,6 @@ workflows:
213
127
version : 2
214
128
build-deploy :
215
129
jobs :
216
- - test_python :
217
- filters :
218
- branches :
219
- only : /.*/
220
- tags :
221
- only : /.*/
222
130
- test :
223
131
filters :
224
132
branches :
@@ -237,21 +145,6 @@ workflows:
237
145
only : /.*/
238
146
tags :
239
147
only : /.*/
240
- - pypi_precheck :
241
- filters :
242
- tags :
243
- only : /.*/
244
- - pypi_deployment :
245
- requires :
246
- - test_python
247
- - test
248
- - test_docker
249
- - pypi_precheck
250
- filters :
251
- branches :
252
- ignore : /.*/
253
- tags :
254
- only : /.*/
255
148
- gh-pages_deployment :
256
149
requires :
257
150
- test
0 commit comments