File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change 26
26
command : |
27
27
python3 -m venv venv
28
28
. venv/bin/activate
29
- pip install -e ".[mongodb]"
29
+ pip3 install -e ".[mongodb]"
30
30
31
31
- save_cache :
32
32
paths :
38
38
name : run tests
39
39
command : |
40
40
. venv/bin/activate
41
- python setup.py test
42
-
41
+ python3 setup.py test
42
+
43
43
publish-release :
44
44
docker :
45
45
- image : circleci/python:3.7
@@ -50,23 +50,14 @@ jobs:
50
50
- run :
51
51
name : check git tag with package version
52
52
command : |
53
- check_git_tag_with_package_version () {
54
- tag_version=${CIRCLE_TAG#*v}
55
- pkg_version=$(python3 -c "import powerapi; print(powerapi.__version__)" 2>/dev/null || echo "error")
56
- if [ "$tag_version" = "$pkg_version" ]; then
57
- return 0
58
- fi
59
- return 1
60
- }
61
- check_git_tag_with_package_version
53
+ python3 -c "import os, powerapi; exit(os.environ.get('CIRCLE_TAG', '?')[1:] != powerapi.__version__)"
62
54
63
55
- run :
64
56
name : prepare environment
65
57
command : |
66
58
python3 -m venv venv
67
59
. venv/bin/activate
68
- pip install --upgrade pip
69
- pip install --upgrade twine
60
+ pip3 install -U pip twine
70
61
71
62
- run :
72
63
name : init .pypirc
You can’t perform that action at this time.
0 commit comments