Skip to content

Commit

Permalink
Merge pull request #89 from eWaterCycle/semver-valueerror-88
Browse files Browse the repository at this point in the history
Replace bad chars in singularity version
  • Loading branch information
sverhoeven authored Jan 26, 2021
2 parents 54beca8 + bfbbc32 commit 27b8e22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
pip install -r requirements.txt
python setup.py install
- name: Setup Singularity
uses: eWaterCycle/setup-singularity@v4
uses: eWaterCycle/setup-singularity@v5
with:
singularity-version: 3.6.4
- name: Pull Docker image
Expand Down Expand Up @@ -52,7 +52,7 @@ jobs:
with:
submodules: true
- name: Install grpc
uses: ewatercycle/setup-grpc@master
uses: ewatercycle/setup-grpc@v3
with:
grpc-version: 1.27.2
- name: Copy grpc to system default
Expand Down
2 changes: 1 addition & 1 deletion grpc4bmi/bmi_client_singularity.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def check_singularity_version():
(stdout, _stderr) = p.communicate()
if p.returncode != 0:
raise Exception('Unable to determine singularity version')
if not semver.match(stdout.decode('utf-8'), REQUIRED_SINGULARITY_VERSION):
if not semver.match(stdout.decode('utf-8').replace('_', '-'), REQUIRED_SINGULARITY_VERSION):
raise Exception(f'Wrong version of singularity found, require version {REQUIRED_SINGULARITY_VERSION}')
return True

Expand Down

0 comments on commit 27b8e22

Please sign in to comment.