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

Remove environment variables for testing ckanr on Github actions #212

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

fjuniorr
Copy link
Contributor

@fjuniorr fjuniorr commented May 28, 2024

Closes #193

In #192 most of the environment variables were removed because they were being defined by prepare_test_ckan with the exception of CKANR_TEST_URL and CKANR_TEST_BEHAVIOUR.

We don't need to skip tests in Github Actions and if we hardcode CKANR_TEST_URL this makes it easier to run the
test suite locally with docker compose because the only env var that needs to be defined is TEST_API_KEY as
described in https://github.com/ropensci/ckanr/blob/master/.github/CONTRIBUTING.md.

Edit. We do need to skip the tests for windows and macos runners but defining the variable CKANR_TEST_BEHAVIOUR directly brought some unintended consequences.

@fjuniorr fjuniorr mentioned this pull request May 28, 2024
11 tasks
@@ -153,9 +153,7 @@ check_organization <- function(url, x){
}
}

u <- get_test_url()
Copy link
Contributor

@florianm florianm May 29, 2024

Choose a reason for hiding this comment

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

If we were to let get_test_url() have a default value that works here (i.e. "http://localhost:5000"), we could remove the environment secret from the GH repo as well as the env variable CKANR_TEST_URL in workflow R-check.yaml.

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.

Replace Github actions secrets with variables for non-sensitive data
2 participants