Skip to content

Commit 53966cf

Browse files
authored
Merge pull request #2603 from effigies/ci/pypi_precheck
CI: Add PyPI validation on rel/* branches
2 parents f79581e + 619cb34 commit 53966cf

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.circleci/config.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,19 @@ jobs:
330330
- /tmp/docker/cache/Dockerfile.base-pruned
331331
key: dockerfile-cache-v1-{{ .Branch }}-{{ checksum "/tmp/docker/cache/Dockerfile.base-pruned" }}
332332

333+
pypi_precheck:
334+
machine: *machine_kwds
335+
working_directory: /home/circleci/nipype
336+
steps:
337+
- checkout:
338+
path: /home/circleci/nipype
339+
- run:
340+
name: Check pypi preconditions
341+
command: |
342+
pip install twine future wheel readme_renderer
343+
python setup.py check -r -s
344+
python setup.py sdist bdist_wheel
345+
333346
deploy_pypi:
334347
machine: *machine_kwds
335348
working_directory: /home/circleci/nipype
@@ -339,7 +352,8 @@ jobs:
339352
- run:
340353
name: Deploy to PyPI
341354
command: |
342-
pip install twine future wheel
355+
pip install twine future wheel readme_renderer
356+
python setup.py check -r -s
343357
python setup.py sdist bdist_wheel
344358
twine upload dist/*
345359
@@ -422,3 +436,7 @@ workflows:
422436
only: /rel\/.*/
423437
tags:
424438
only: /.*/
439+
- pypi_precheck:
440+
filters:
441+
branches:
442+
only: /rel\/.*/

0 commit comments

Comments
 (0)