+
Skip to content

CI Tests: Force package version to be dev #486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jan 27, 2020

Conversation

ewels
Copy link
Member

@ewels ewels commented Jan 27, 2020

Currently, CI tests on the linting code fail when the package version is stable.

This is because the minimal working example hardcodes dev for the Dockerfile version:

The template tags this Dockerfile version based on the active python version number:

FROM nfcore/base:{{ 'dev' if 'dev' in cookiecutter.nf_core_version else cookiecutter.nf_core_version }}

The lint code checks for the same:

"FROM nfcore/base:{}".format('dev' if 'dev' in nf_core.__version__ else nf_core.__version__),

This fix is a little hacky, but basically just makes the package version number include dev if it doesn't, so that the CI tests run properly.

One day we should probably refactor how these tests work to get around these kinds of problems.. But for now this should get things working again, in lieu of a fairly complete rewrite.

@ewels ewels added the linting label Jan 27, 2020
@ewels ewels requested a review from a team January 27, 2020 10:21
@ewels
Copy link
Member Author

ewels commented Jan 27, 2020

Dropped Python 2.7 from the Travis test config, due to installation errors. It's 2020 now, no-one is left using Py2k any more, right..?

Copy link
Member

@drpatelh drpatelh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed! Bit hacky but it works for now 👍

@ewels ewels merged commit 6d793a9 into nf-core:dev Jan 27, 2020
@ewels ewels deleted the docker-tag-test-fix branch January 27, 2020 10:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载