-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into basgra-yasso-pr
- Loading branch information
Showing
85 changed files
with
827 additions
and
684 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
# | ||
# Add project labels | ||
# | ||
|
||
# Add 'Documentation' label to any changes in the documentation | ||
|
||
'Documentation': | ||
- book_source/** | ||
- documentation/** | ||
- CONTRIBUTING.md | ||
- DEBUGING.md | ||
- DEV-INTRO.md | ||
- README.md | ||
|
||
# Add 'Dockerfile' label to any changes in the docker directory | ||
'Dockerfile': | ||
- docker/** | ||
|
||
|
||
# Add 'Website' label to any changes in the web directory | ||
|
||
'Website': | ||
- web/** | ||
|
||
# Add 'Base' label to any changes in the base directory | ||
|
||
'Base': | ||
- base/** | ||
|
||
# Add 'Models' label to any changes in the models directory | ||
|
||
'Models': | ||
- models/** | ||
|
||
# Add 'Modules' label to any changes in the modules directory | ||
|
||
'Modules': | ||
- modules/** | ||
|
||
# Add 'GitHub Actions' label to any changes in the .github/workflows directory | ||
|
||
'GitHub Actions': | ||
- .github/workflows/** | ||
|
||
# Add 'Scripts' label to any changes in the scripts directory | ||
|
||
'Scripts': | ||
- scripts/** | ||
|
||
# Add 'Tests' label to any changes in the tests directory | ||
|
||
'Tests': | ||
- tests/** | ||
- '**/tests/**' | ||
- '!**/tests/Rcheck_reference.log' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#Define the colour of labels over here | ||
|
||
labels: | ||
|
||
- name: "Documentation" | ||
color: a2dcf2 | ||
|
||
- name: "Dockerfile" | ||
color: 0052CC | ||
|
||
- name: "Website" | ||
color: 84b6eb | ||
|
||
- name: "Base" | ||
color: 1ED626 | ||
|
||
- name: "Models" | ||
color: C5DEF5 | ||
|
||
- name: "Modules" | ||
color: FBCA04 | ||
|
||
- name: "GitHub Actions" | ||
color: 84b6eb | ||
|
||
- name: "Scripts" | ||
color: 3B8924 | ||
|
||
- name: "Tests" | ||
color: ff8c00 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# This workflow is based on github action official label action v4. | ||
# This workflow action is triggered on pull request event(on both fork & inside repo) | ||
# Labels will be applied based on filepath modification in PR. | ||
# This workflow uses a regex based labeling config file(.github/labeler.yml) to take labeling decision. | ||
|
||
name: "PR Labeler" | ||
on: | ||
- pull_request_target | ||
jobs: | ||
label: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/labeler@v4 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" | ||
configuration-path: ".github/labeler.yml" | ||
sync-labels: false | ||
dot: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,7 +153,8 @@ clean: | |
+ ./scripts/time.sh "roxygen2 ${1}" Rscript -e ${SETROPTIONS} \ | ||
-e "if (!requireNamespace('roxygen2', quietly = TRUE)" \ | ||
-e " || packageVersion('roxygen2') != '7.2.3') {" \ | ||
-e " devtools::install_github('r-lib/[email protected]')" \ | ||
-e " cran <- c(getOption('repos'), 'cloud.r-project.org')" \ | ||
-e " remotes::install_version('roxygen2', '7.2.3', repos = cran, upgrade = FALSE)" \ | ||
-e "}" | ||
$(eval INSTALLED_ROXYGEN_VERSION := 7.2.3) | ||
echo `date` > $@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
test_that("`start_model_runs` throws a warning if runs.txt not provided", { | ||
withr::with_tempdir({ | ||
PEcAn.logger::logger.setUseConsole(TRUE, FALSE) | ||
on.exit(PEcAn.logger::logger.setUseConsole(TRUE, TRUE)) | ||
settings <- list(rundir = getwd()) | ||
expect_output(start_model_runs(settings), "runs.txt not found") | ||
}) | ||
}) | ||
|
||
test_that("`start_model_runs` throws a warning if runs.txt is empty", { | ||
withr::with_tempdir({ | ||
PEcAn.logger::logger.setUseConsole(TRUE, FALSE) | ||
on.exit(PEcAn.logger::logger.setUseConsole(TRUE, TRUE)) | ||
settings <- list(rundir = getwd()) | ||
file_path <- file.path(getwd(), "runs.txt") | ||
file.create(file_path) | ||
expect_output(start_model_runs(settings), "runs.txt found, but is empty") | ||
}) | ||
}) | ||
|
Oops, something went wrong.