Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
d4c6af9
clean slate
kdorheim Feb 26, 2025
f79a1d5
command line tests
kdorheim Feb 26, 2025
8e4b881
chaching dependecies
kdorheim Feb 26, 2025
96a68d4
manual run
kdorheim Feb 26, 2025
a9df7ff
trying new
kdorheim Feb 26, 2025
a8aa791
only on main PRs otherwise mannual trigger
kdorheim Feb 26, 2025
fb584e8
code coverage
kdorheim Feb 26, 2025
e2d5109
trying again
kdorheim Feb 26, 2025
22d9234
what about now
kdorheim Feb 26, 2025
af569c9
wip
kdorheim Feb 27, 2025
b18d462
testing out new coverage testing
kdorheim Feb 27, 2025
65f82d0
fixing
kdorheim Feb 27, 2025
d4f48c7
testing
kdorheim Feb 27, 2025
3dda26d
saving CI resources
kdorheim Feb 27, 2025
413e17f
adding the R checks back
kdorheim Feb 28, 2025
57d2ea0
ops
kdorheim Feb 28, 2025
3e9844a
silence for now
kdorheim Feb 28, 2025
440c2fd
testing
kdorheim Mar 4, 2025
dc04dec
pandoc
kdorheim Mar 4, 2025
2de2b92
trying again
kdorheim Mar 4, 2025
0f32178
trying again
kdorheim Mar 4, 2025
1c29138
trying again
kdorheim Mar 5, 2025
9940af4
trying again
kdorheim Mar 5, 2025
77491e9
add dependeices
kdorheim Mar 5, 2025
5e65ee9
package dependencies
kdorheim Mar 5, 2025
11a23f0
ugh
kdorheim Mar 5, 2025
02fa76b
remove kable extra dependeicy
kdorheim Mar 5, 2025
929b052
please work
kdorheim Mar 5, 2025
b6906d5
ah
kdorheim Mar 6, 2025
bf26433
try again
kdorheim Mar 6, 2025
787445a
missing dependcy
kdorheim Mar 6, 2025
58ac913
posting comment
kdorheim Mar 6, 2025
0823cfd
fix error
kdorheim Mar 6, 2025
86fe63f
can we get some figures please?
kdorheim Mar 6, 2025
e5e707e
different reporting setting
kdorheim Mar 6, 2025
e867ad8
clean up
kdorheim Mar 11, 2025
16a0890
leeyabot
kdorheim Mar 12, 2025
b9a58da
final github actions
kdorheim Mar 12, 2025
5c76ec2
ignore pi control in required input testing
kdorheim Mar 12, 2025
97fe286
adopting compoass workflo
kdorheim Mar 28, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 14 additions & 21 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
@@ -1,39 +1,32 @@
name: R-CMD-check
# Controls when the action will run.

on:
push:
branches:
- main
pull_request:
branches:
- '**' # matches every branch

- main
schedule:
# * is a special character in YAML so you have to quote this string
# Launch run at 6am the 1st of every month.
- cron: '0 6 1 * *'

# Allows you to run this workflow manually from the Actions tab
- cron: '0 6 1 * *' # Run at 6 AM on the 1st of each month
workflow_dispatch:

jobs:
R-CMD-check:
# Don't run scheduled job on forks, only in main repository.
if: (github.event_name == 'schedule' && github.repository == 'JGCRI/hector') || (github.event_name != 'schedule')

runs-on: ${{ matrix.config.os }}
if: github.event_name != 'schedule' || github.repository == 'JGCRI/hector'

name: ${{ matrix.config.os }} (${{ matrix.config.r }})
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (${{ matrix.r }})

strategy:
fail-fast: false
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'}
- {os: ubuntu-latest, r: 'release'}
- {os: ubuntu-latest, r: 'oldrel-1'}
os: [macos-latest, windows-latest, ubuntu-latest]
r: ['release', 'oldrel-1']
include:
- os: ubuntu-latest
r: 'devel'
http-user-agent: 'release'

env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -46,8 +39,8 @@ jobs:

- uses: r-lib/actions/setup-r@v2
with:
r-version: ${{ matrix.config.r }}
http-user-agent: ${{ matrix.config.http-user-agent }}
r-version: ${{ matrix.r }}
http-user-agent: ${{ matrix.http-user-agent || '' }}
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/codecov.yaml

This file was deleted.

44 changes: 44 additions & 0 deletions .github/workflows/command-line-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Build & C++ Unit Tests

on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
- cron: '0 6 1 * *' # Run at 6 AM on the 1st of each month
workflow_dispatch:

jobs:
executable-build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install -y libboost-dev
- name: Build and run
run: |
set -e # Exit on failure
make hector
bash ./test_hector.sh ./src/hector

gunit-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt install -y libgtest-dev libboost-filesystem-dev libboost-system-dev
cd /usr/src/gtest && sudo cmake . && sudo make && sudo cp lib/*.a /usr/local/lib
- name: Build and run unit tests
run: |
set -e # Exit on failure
make testing
./src/unit-testing/hector-unit-tests
43 changes: 0 additions & 43 deletions .github/workflows/command-line.yaml

This file was deleted.

57 changes: 57 additions & 0 deletions .github/workflows/leeyabot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Leeyabot Report

on:
workflow_dispatch: # Allows manual triggering from GitHub UI
pull_request:
paths:
- "scripts/leeyabot.Rmd" # Runs when report.Rmd changes in a PR

jobs:
render-and-push:
runs-on: ubuntu-latest
name: Build and run leeyabot
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-pandoc@v2
- uses: quarto-dev/quarto-actions/setup@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
packages:
any::ggplot2
any::rmarkdown
any::dplyr
any::remotes
any::here
any::knitr
any::Rcpp
any::BH

- name: Setup R
uses: r-lib/actions/setup-r@v2

- name: Install System Dependencies (including Pandoc)
run: |
sudo apt-get update
sudo apt-get install -y pandoc
sudo apt-get install libcurl4-openssl-dev
sudo apt-get install -y libjs-mathjax
- name: Install package
run: R CMD INSTALL .

- name: Render RMarkdown
run: R -e 'rmarkdown::render("scripts/leeyabot.Rmd", output_format="github_document")'

- name: Comment Report on PR
run: |
echo ":bar_chart: **Report Generated** :robot:" >> comment.txt
echo "" >> comment.txt
echo "Here is the latest automated report:" >> comment.txt
echo "" >> comment.txt
cat scripts/leeyabot.md >> comment.txt # Append the report contents
gh pr comment ${{ github.event.pull_request.number }} --body-file comment.txt
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

54 changes: 0 additions & 54 deletions .github/workflows/leeyabot.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches: [main]
pull_request:
branches:
- '**' # matches every branch
- main
release:
types: [published]
workflow_dispatch:
Expand Down
Loading