Skip to content

Commit 9422913

Browse files
authored
Merge pull request #3526 from PecanProject/release/v1.9.0
Release/v1.9.0
2 parents 1f4c805 + 4861147 commit 9422913

File tree

1,050 files changed

+21686
-11364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,050 files changed

+21686
-11364
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@
2626
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
2727
- [ ] My change requires a change to the documentation.
2828
- [ ] My name is in the list of CITATION.cff
29+
- [ ] I agree that PEcAn Project may distribute my contribution under any or all of
30+
- the same license as the existing code,
31+
- and/or the BSD 3-clause license.
2932
- [ ] I have updated the CHANGELOG.md.
3033
- [ ] I have updated the documentation accordingly.
3134
- [ ] I have read the **CONTRIBUTING** document.

.github/labeler.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,57 @@
11
#
2-
# Add project labels
3-
#
4-
5-
# Add 'Documentation' label to any changes in the documentation
2+
# Add project labels to PRs
3+
# Invocation is done by .github/workflows/prlabeler.yml
64

5+
# changes in the documentation
76
'Documentation':
8-
- book_source/**
9-
- documentation/**
10-
- CONTRIBUTING.md
11-
- DEBUGING.md
12-
- DEV-INTRO.md
13-
- README.md
7+
- changed-files:
8+
- any-glob-to-any-file: 'book_source/**'
9+
- any-glob-to-any-file: 'documentation/**'
10+
- any-glob-to-any-file: 'CONTRIBUTING.md'
11+
- any-glob-to-any-file: 'DEBUGING.md'
12+
- any-glob-to-any-file: 'DEV-INTRO.md'
13+
- any-glob-to-any-file: 'README.md'
1414

1515
# Add 'Dockerfile' label to any changes in the docker directory
1616
'Dockerfile':
17-
- docker/**
17+
- changed-files:
18+
- any-glob-to-any-file: 'docker/**'
1819

1920

2021
# Add 'Website' label to any changes in the web directory
21-
2222
'Website':
23-
- web/**
23+
- changed-files:
24+
- any-glob-to-any-file: 'web/**'
2425

2526
# Add 'Base' label to any changes in the base directory
26-
2727
'Base':
28-
- base/**
28+
- changed-files:
29+
- any-glob-to-any-file: 'base/**'
2930

3031
# Add 'Models' label to any changes in the models directory
31-
3232
'Models':
33-
- models/**
33+
- changed-files:
34+
- any-glob-to-any-file: 'models/**'
3435

3536
# Add 'Modules' label to any changes in the modules directory
36-
3737
'Modules':
38-
- modules/**
38+
- changed-files:
39+
- any-glob-to-any-file: 'modules/**'
3940

4041
# Add 'GitHub Actions' label to any changes in the .github/workflows directory
41-
4242
'GitHub Actions':
43-
- .github/workflows/**
43+
- changed-files:
44+
- any-glob-to-any-file: '.github/workflows/**'
4445

4546
# Add 'Scripts' label to any changes in the scripts directory
4647

4748
'Scripts':
48-
- scripts/**
49+
- changed-files:
50+
- any-glob-to-any-file: 'scripts/**'
4951

5052
# Add 'Tests' label to any changes in the tests directory
51-
5253
'Tests':
53-
- tests/**
54-
- '**/tests/**'
55-
- '!**/tests/Rcheck_reference.log'
56-
57-
54+
- all:
55+
- changed-files:
56+
- any-glob-to-any-file: ['tests/**', '**/tests/**']
57+
- any-glob-to-any-file: '!**/tests/Rcheck_reference.log'

.github/workflows/book.yml

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: renderbook
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- develop
88
tags:
99
- '*'
@@ -18,7 +18,7 @@ jobs:
1818
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
1919

2020
container:
21-
image: pecan/depends:R4.1
21+
image: pecan/depends:develop
2222

2323
steps:
2424
# checkout source code
@@ -46,13 +46,22 @@ jobs:
4646
cd book_source
4747
Rscript -e 'options(bookdown.render.file_scope=FALSE); bookdown::render_book("index.Rmd", "bookdown::gitbook")'
4848
# save artifact
49-
- uses: actions/upload-artifact@v3
49+
- uses: actions/upload-artifact@v4
5050
with:
5151
name: pecan-documentation
5252
path: book_source/_book/
53+
# check if documentation repo exists
54+
- name: Check if documentation repo exists
55+
id: doc_exists
56+
run: |
57+
if git ls-remote https://github.com/${{ github.repository_owner }}/pecan-documentation.git > /dev/null 2>&1; then
58+
echo "exists=true" >> $GITHUB_OUTPUT
59+
else
60+
echo "exists=false" >> $GITHUB_OUTPUT
61+
fi
5362
# download documentation repo
5463
- name: Checkout documentation repo
55-
if: github.event_name == 'push'
64+
if: ${{ github.event_name == 'push' && steps.doc_exists.outputs.exists == 'true' }}
5665
uses: actions/checkout@v4
5766
with:
5867
repository: ${{ github.repository_owner }}/pecan-documentation
@@ -65,9 +74,12 @@ jobs:
6574
git config --global user.email "pecanproj@gmail.com"
6675
git config --global user.name "GitHub Documentation Robot"
6776
export VERSION=$(echo $GITHUB_REF | sed 's,.*/,,' )
77+
if [ "$VERSION" = "main" ]; then
78+
export VERSION=latest
79+
fi
6880
cd pecan-documentation
6981
mkdir -p $VERSION
7082
rsync -a --delete ../book_source/_book/ ${VERSION}/
7183
git add --all *
7284
git commit -m "Build book from pecan revision ${GITHUB_SHA}" || true
73-
git push -q origin master
85+
git push -q origin main

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
_R_CHECK_SYSTEM_CLOCK_: 0
3333

3434
container:
35-
image: pecan/depends:R${{ inputs.R-version }}
35+
image: pecan/depends:develop-R${{ inputs.R-version }}
3636

3737
steps:
3838
# checkout source code

.github/workflows/ci-weekly.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
fail-fast: false
1414
matrix:
1515
R:
16+
- "4.1"
17+
- "4.3"
1618
- "devel"
1719
uses: ./.github/workflows/test.yml
1820
with:
@@ -24,6 +26,8 @@ jobs:
2426
fail-fast: false
2527
matrix:
2628
R:
29+
- "4.1"
30+
- "4.3"
2731
- "devel"
2832
uses: ./.github/workflows/check.yml
2933
with:
@@ -36,6 +40,8 @@ jobs:
3640
fail-fast: false
3741
matrix:
3842
R:
43+
- "4.1"
44+
- "4.3"
3945
- "devel"
4046
uses: ./.github/workflows/sipnet.yml
4147
with:

.github/workflows/ci.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@ name: CI
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
- develop
8-
98
tags:
10-
- '*'
9+
- "v*.*.*"
1110
pull_request:
1211
merge_group:
1312
issue_comment:
@@ -29,8 +28,8 @@ jobs:
2928
fail-fast: false
3029
matrix:
3130
R:
31+
- "4.4"
3232
- "4.2"
33-
- "4.1"
3433
uses: ./.github/workflows/test.yml
3534
with:
3635
R-version: ${{ matrix.R }}
@@ -43,8 +42,8 @@ jobs:
4342
matrix:
4443
package: [check_base, check_modules, check_models]
4544
R:
45+
- "4.4"
4646
- "4.2"
47-
- "4.1"
4847
uses: ./.github/workflows/check.yml
4948
with:
5049
R-version: ${{ matrix.R }}
@@ -57,8 +56,8 @@ jobs:
5756
fail-fast: false
5857
matrix:
5958
R:
59+
- "4.4"
6060
- "4.2"
61-
- "4.1"
6261
uses: ./.github/workflows/sipnet.yml
6362
with:
6463
R-version: ${{ matrix.R }}

.github/workflows/depends.yml

Lines changed: 0 additions & 98 deletions
This file was deleted.

0 commit comments

Comments
 (0)