Skip to content

Commit feded1d

Browse files
committed
Check files in dist/* on all commits
1 parent 0bb02c5 commit feded1d

File tree

3 files changed

+31
-11
lines changed

3 files changed

+31
-11
lines changed

.circleci/config.yml

Lines changed: 24 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,25 @@ jobs:
5858
manylinux-x64_cp27-cp27mu_tests-only:
5959
<<: *x64_build_job
6060

61+
check-dist:
62+
docker:
63+
- image: circleci/python:3.9.4
64+
steps:
65+
- attach_workspace:
66+
at: ./
67+
- run:
68+
name: Check dist
69+
command: |
70+
echo "Check dist"
71+
ls dist
72+
python -m venv ../venv
73+
. ../venv/bin/activate
74+
pip install twine
75+
twine check --strict dist/*
76+
6177
deploy-master:
6278
docker:
63-
- image: circleci/python:3.7.0-stretch
79+
- image: circleci/python:3.9.4
6480
steps:
6581
- attach_workspace:
6682
at: ./
@@ -71,7 +87,7 @@ jobs:
7187
7288
deploy-release:
7389
docker:
74-
- image: circleci/python:3.7.0-stretch
90+
- image: circleci/python:3.9.4
7591
steps:
7692
- attach_workspace:
7793
at: ./
@@ -100,25 +116,24 @@ workflows:
100116
- manylinux-x64_cp27-cp27mu_tests-only:
101117
<<: *no_filters
102118

103-
- deploy-master:
119+
- check-dist:
104120
requires:
105121
# x64
106122
- manylinux-x64_cp37-cp37m_upload-sdist
107123
# x86
108124
- manylinux-x86_cp37-cp37m
109125
# python 2.7 test
110126
- manylinux-x64_cp27-cp27mu_tests-only
127+
128+
- deploy-master:
129+
requires:
130+
- check-dist
111131
filters:
112132
branches:
113133
only: master
114134
- deploy-release:
115135
requires:
116-
# x64
117-
- manylinux-x64_cp37-cp37m_upload-sdist
118-
# x86
119-
- manylinux-x86_cp37-cp37m
120-
# python 2.7 test
121-
- manylinux-x64_cp27-cp27mu_tests-only
136+
- check-dist
122137
filters:
123138
tags:
124139
only: /^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$/

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,11 @@ after_success:
9191
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
9292
ci after_test
9393
fi
94-
pwd && ls dist; PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH && twine --version
94+
pwd
95+
ls dist
96+
PATH=~/.pyenv/versions/${PYTHON_VERSION}/bin/:$PATH
97+
twine --version
98+
twine check --strict dist/*
9599
96100
deploy:
97101
# deploy-release

appveyor.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,10 @@ on_finish:
4848

4949
deploy_script:
5050
- ps: |
51+
$env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
52+
twine check --strict dist/*
5153
if ($env:appveyor_repo_tag -eq $true -and $env:appveyor_repo_tag_name –match "^[0-9]+(\.[0-9]+)*(\.post[0-9]+)?$") {
5254
Write-Host "deploy release"
53-
$env:PATH="$env:PYTHON_DIR/Scripts/;$env:PATH"
5455
twine upload -u $env:PYPI_USER -p $env:PYPI_PASSWORD --skip-existing dist/*
5556
} elseif ($env:appveyor_repo_branch -eq "master") {
5657
Write-Host "deploy master (not implemented)"

0 commit comments

Comments
 (0)