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

Move CI to github actions #433

Merged
merged 21 commits into from
Mar 20, 2024
Merged

Move CI to github actions #433

merged 21 commits into from
Mar 20, 2024

Conversation

r-ash
Copy link
Contributor

@r-ash r-ash commented Mar 6, 2024

In moving this to Avenir we'll no longer have access to the buildkite runners. We can use github actions free runners to achieve what we need instead.

This PR will

  • Move CI build to github actions
  • Remove branch pin on duckdb (they now have a release which is backwards and forwards compatible, so we can use this to read old results)
  • Fix some R CMD check issues
  • Fix vignette generation and rerun these

@r-ash r-ash force-pushed the gh-actions branch 2 times, most recently from 544b006 to 42d21ab Compare March 15, 2024 16:45
@r-ash r-ash changed the title Add github actions builds Move CI to github actions Mar 18, 2024
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
Copy link
Member

Choose a reason for hiding this comment

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

Do we want to avoid going via docker hub soon and only go via ghcr? You'll need to arrange a new dockerhub account otherwise, and they will definitely consider Avenir commercial

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, expecting we can remove this soon. I'll get deployment working off ghcr and then can remove this

DESCRIPTION Outdated
mrc-ide/mockr,
mrc-ide/testthat.buildkite,
duckdb/[email protected]
mrc-ide/naomi.options
Copy link
Member

Choose a reason for hiding this comment

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

Is this not on the universe?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is, removed that line.

NAMESPACE Outdated
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand

S3method(naomi::print,naomi_areas)
Copy link
Member

Choose a reason for hiding this comment

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

This is odd for two reasons:

  • does print not work as the generic?
  • should naomi not implement this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks, think this was me not understanding when you should use @exportS3method over @export. Have updated this to @export now which I think is correct (from https://roxygen2.r-lib.org/articles/namespace.html#s3) I've fixed the signature too to actually match print.

R/areas.R Outdated
@@ -160,6 +160,7 @@ create_areas <- function(levels = NULL, hierarchy = NULL, boundaries = NULL,
v
}

#' @exportS3Method naomi::print
Copy link
Member

Choose a reason for hiding this comment

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

see comments in NAMESPACE

@@ -1,6 +1,6 @@
## Naomi <img src='images/naomi_hex.png' align="right" height="139" />

[![Travis build status](https://travis-ci.org/mrc-ide/naomi.svg?branch=master)](https://travis-ci.org/mrc-ide/naomi)
Copy link
Member

Choose a reason for hiding this comment

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

oh my

docker/teamcity Outdated
Copy link
Member

Choose a reason for hiding this comment

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

so much archaeology...

.Rbuildignore Outdated Show resolved Hide resolved
Co-authored-by: Rich FitzJohn <[email protected]>
@r-ash r-ash merged commit f3ef05f into master Mar 20, 2024
8 checks passed
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.

3 participants