Skip to content
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

add lintr step to PR workflow #3072

Merged
merged 7 commits into from
Jun 11, 2020

Conversation

bernt-matthias
Copy link
Contributor

also integrate latest changes (from galaxyproject/tools-devteam#560) from devteam repo.

FOR CONTRIBUTOR:

  • - I have read the CONTRIBUTING.md document and this tool is appropriate for the tools-iuc repo.
  • - License permits unrestricted use (educational + commercial)
  • - This PR adds a new tool or tool collection
  • - This PR updates an existing tool or tool collection
  • - This PR does something else (explain below)

.github/workflows/pr.yaml Outdated Show resolved Hide resolved
@bernt-matthias bernt-matthias force-pushed the topic/lintr branch 3 times, most recently from 9175ef8 to 44b85f5 Compare June 10, 2020 12:55
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
@bernt-matthias
Copy link
Contributor Author

Thanks @nsoranzo . Looks quite good to me now.

Caching of the R packages seems not to work yet.

Any idea where the annotation:

No files were found for the provided path: galaxy.sha. No artifacts will be uploaded.

comes from?

Copy link
Member

@nsoranzo nsoranzo left a comment

Choose a reason for hiding this comment

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

Some suggested changes to print the full relative path of the files with linting errors.

.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
@nsoranzo
Copy link
Member

Nice! You could now check if fixing an R script makes the linter step pass correctly.

@bernt-matthias bernt-matthias force-pushed the topic/lintr branch 3 times, most recently from 7d0948c to 5962f1b Compare June 11, 2020 07:46
@bernt-matthias
Copy link
Contributor Author

Seems to work -- also the caching runs if the lint step is successful. I think the last question is if the caching of the R packages is fine as it is. Maybe it should be versioned?

.github/workflows/pr.yaml Show resolved Hide resolved
.github/workflows/pr.yaml Show resolved Hide resolved
.github/workflows/pr.yaml Outdated Show resolved Hide resolved
Co-authored-by: Nicola Soranzo <[email protected]>
@bernt-matthias
Copy link
Contributor Author

OK. Cool. Not sure about R package management. What happens if a new version of lintr or one of its requirements is available?

@nsoranzo
Copy link
Member

OK. Cool. Not sure about R package management. What happens if a new version of lintr or one of its requirements is available?

As it is now, the present version of lintr will be used from the cache until we change the R version in the matrix. I don't think it is a big deal, we can change that later if needed.

@nsoranzo nsoranzo merged commit 8007f71 into galaxyproject:master Jun 11, 2020
@nsoranzo nsoranzo deleted the topic/lintr branch June 11, 2020 10: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