+
Skip to content

GitHub Actions: add TODO statement to encourage customisation #488

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 2 commits into from
Jan 27, 2020

Conversation

ewels
Copy link
Member

@ewels ewels commented Jan 27, 2020

The CI tests should probably be customised to run with different parameters. Added a TODO statement that should be flagged as a warning by the linting code to encourage this.

@ewels ewels added template nf-core pipeline/component template linting labels Jan 27, 2020
@ewels ewels requested a review from a team January 27, 2020 11:14
@ewels ewels mentioned this pull request Jan 27, 2020
5 tasks
docker pull {{ cookiecutter.name_docker }}:dev && docker tag {{ cookiecutter.name_docker }}:dev {{ cookiecutter.name_docker }}:dev
- name: Run test
- name: Pull docker image
run: docker pull {{ cookiecutter.name_docker }}:dev && docker tag {{ cookiecutter.name_docker }}:dev {{ cookiecutter.name_docker }}:dev
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
run: docker pull {{ cookiecutter.name_docker }}:dev && docker tag {{ cookiecutter.name_docker }}:dev {{ cookiecutter.name_docker }}:dev
run: |

Copy link
Member

Choose a reason for hiding this comment

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

I think this is why the tests are failing. The docker command needs to be on its own line.

docker pull {{ cookiecutter.name_docker }}:dev && docker tag {{ cookiecutter.name_docker }}:dev {{ cookiecutter.name_docker }}:dev
- name: Run test
- name: Pull docker image
run: docker pull {{ cookiecutter.name_docker }}:dev && docker tag {{ cookiecutter.name_docker }}:dev {{ cookiecutter.name_docker }}:dev
Copy link
Member

Choose a reason for hiding this comment

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

I think this is why the tests are failing. The docker command needs to be on its own line.

@drpatelh drpatelh merged commit 71df058 into nf-core:dev Jan 27, 2020
@ewels ewels deleted the todo-actions branch January 27, 2020 11:52
@ewels
Copy link
Member Author

ewels commented Jan 27, 2020

Thanks! It's not so much that it needs to be on its own line, but more than it needs to be escaped - the command has a : in it, so without quotes (or being a multiline string with |), it's interpreted as a YAML dictionary and breaks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linting template nf-core pipeline/component template
Projects
None yet
Development

Successfully merging this pull request may close these issues.

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