You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Must be absolute path or relative path from working_directory
@@ -111,7 +113,8 @@ jobs:
111
113
path: htmlcov
112
114
no_output_timeout: 5h
113
115
pytest-singularity:
114
-
machine: true
116
+
machine:
117
+
image: ubuntu-2004:202010-01
115
118
steps:
116
119
- attach_workspace:
117
120
# Must be absolute path or relative path from working_directory
@@ -126,7 +129,8 @@ jobs:
126
129
pip install -r dev/circleci_data/requirements.txt
127
130
coverage run -m pytest --junitxml=test-results/junit.xml --continue-on-collection-errors dev/circleci_data/test_install.py
128
131
build:
129
-
machine: true
132
+
machine:
133
+
image: ubuntu-2004:202010-01
130
134
steps:
131
135
- checkout
132
136
- set-python-version
@@ -135,32 +139,20 @@ jobs:
135
139
name: "Checking if version needs updated"
136
140
# update version if version needs updated, otherwise just move on
137
141
command: |
138
-
if [[ ! $(git log -1 --pretty=%B) == *"Update version to"* ]]
142
+
COMMIT_MESSAGE=$(git log -1 --pretty=%B)
143
+
if [[ ! "$COMMIT_MESSAGE" == *"Update version to"* ]]
139
144
then
140
145
cd $HOME/project/CPAC
141
-
VERSION=$(python -c "from info import __version__; print(__version__)")
146
+
VERSION=$(python -c "from info import __version__; print('.'.join(('.'.join(__version__[::-1].split('-')[1].split('.')[1:])[::-1], __version__.split('-')[1])) if '-' in __version__ else __version__)")
142
147
cd ..
143
-
if ! [[ $CIRCLE_BRANCH = 'master' ]]
144
-
then
145
-
git fetch --all
146
-
if [[ -n ${CIRCLE_PR_NUMBER} && -n ${GITHUB_PR_BASE_TOKEN} ]]
0 commit comments