Skip to content

Commit 233ee26

Browse files
committed
build and check the distribution
1 parent 51bb728 commit 233ee26

1 file changed

Lines changed: 38 additions & 1 deletion

File tree

‎.circleci/config.yml‎

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,26 @@ jobs:
1818
coverage combine coverage_output/
1919
bash <(curl -s https://codecov.io/bash)
2020
21+
check-package:
22+
parameters:
23+
image:
24+
type: string
25+
docker:
26+
- image: << parameters.image >>
27+
steps:
28+
- python/check-package:
29+
package: "xlrd"
30+
test:
31+
- run:
32+
name: "Check Import"
33+
command: python -c "import xlrd"
34+
- run:
35+
name: "Check no XLS in wheel"
36+
command: "! unzip -l dist/*.whl | egrep '.xlsx?$'"
37+
- run:
38+
name: "Check no XLS in source dist"
39+
command: "! tar tzf dist/*.tar.gz | egrep '.xlsx?$'"
40+
2141
common: &common
2242
jobs:
2343

@@ -34,11 +54,28 @@ common: &common
3454
requires:
3555
- python/pip-run-tests
3656

57+
- python/pip-setuptools-build-package:
58+
name: package
59+
requires:
60+
- coverage
61+
filters:
62+
branches:
63+
only: master
64+
65+
- check-package:
66+
matrix:
67+
parameters:
68+
image:
69+
- circleci/python:2.7
70+
- circleci/python:3.9
71+
requires:
72+
- package
73+
3774
- python/release:
3875
name: release
3976
config: .carthorse.yml
4077
requires:
41-
- coverage
78+
- check-package
4279
filters:
4380
branches:
4481
only: master

0 commit comments

Comments
 (0)