Skip to content

Conversation

@Flamefire
Copy link
Contributor

Use pytest.skipif to skip OCI tests on Singularity 2.
This allows to always run all tests with any singularity version reducing the CI yml file.
To further reduce the yml file dictionary refs are used and PYTHON_VERSION is introduced to install a specific python version

@vsoch
Copy link
Member

vsoch commented Jun 3, 2019

Just missing a definition for singularity2:

#!/bin/sh -eo pipefail
# Unable to parse YAML
# found undefined alias singularity2
#  in 'string', line 116, column 32:
#       test-singularity-2-python-3: *singularity2
#                                    ^

If you download CircleCIs command line parser, you can validate before push,

$ circleci config validate .circleci/config.yml
Config file at .circleci/config.yml is valid.

@Flamefire Flamefire force-pushed the pytest branch 8 times, most recently from 20c1e6f to de8e41f Compare June 3, 2019 15:59
@vsoch
Copy link
Member

vsoch commented Jun 3, 2019

All checks pass! For some reason there was a "no build output for 10 minutes" on the first try, so I restarted, and now all is well :)

Flamefire added 3 commits June 4, 2019 08:21
Python 2 str is bytes, so don't decode if it already is a str
@Flamefire
Copy link
Contributor Author

Ready for merge

@vsoch
Copy link
Member

vsoch commented Jun 4, 2019

Looks great! Merging, and I will put together a release shortly.

@vsoch vsoch merged commit 4f8c59e into singularityhub:master Jun 4, 2019
@vsoch
Copy link
Member

vsoch commented Jun 4, 2019

@Flamefire Flamefire deleted the pytest branch June 4, 2019 15:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants