Skip to content

ci: run R tests on master branch and skip docs-only changes - #356

Merged
gdevenyi merged 2 commits into
developfrom
ci/test-triggers-master-develop
Jul 8, 2026
Merged

ci: run R tests on master branch and skip docs-only changes#356
gdevenyi merged 2 commits into
developfrom
ci/test-triggers-master-develop

Conversation

@gdevenyi

@gdevenyi gdevenyi commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

What & why

The R-tests workflow only triggered on develop, but the GitHub default branch is master and PRs merge directly into master (e.g. #346#354, including code fixes like fix/bind1st-cpp17 #351). As a result, most PRs ran zero tests. AGENTS.md also incorrectly claimed the default branch was develop, which is why this went unnoticed.

Changes

 .github/workflows/R-tests.yml | trigger on develop + master, paths-ignore docs
 AGENTS.md                     | correct default-branch statement (master, not develop)
  • .github/workflows/R-tests.yml — added master to both push.branches and pull_request.branches; added paths-ignore for docs/**, **/*.md, **/README*, and pkgdown.yaml so pure docs/markdown changes skip the 8-job matrix (2 OS × 4 R versions). man/**, NAMESPACE, DESCRIPTION, src/**, R/** stay covered so R CMD check still validates them.
  • AGENTS.md — fixed the Conventions line to reflect reality.

pkgdown.yaml is intentionally untouched (its triggers are already correct, and skipping PRs there is by design since it commits to the repo).

Verification

  • YAML validated with python3 -c 'yaml.safe_load(...)'
  • Diff confirmed to touch only the two intended files ✅
  • No code/build behavior changed, so no package rebuild is required

Notes

  • paths-ignore operates per-push, so a PR mixing code + docs still runs tests; only docs-only commits skip. This is standard GitHub behavior.
  • After merge, CI will start firing on master PRs for the first time.

Copilot AI review requested due to automatic review settings July 8, 2026 19:27

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

The R-tests workflow only triggered on develop, but the GitHub default
branch is master and PRs merge directly into master, so most PRs ran no
tests. Add master to push/pull_request triggers, and add paths-ignore
for docs/markdown so the 8-job matrix doesn't run on pure doc changes.

Also correct AGENTS.md, which incorrectly stated the default branch is
develop.
@gdevenyi
gdevenyi force-pushed the ci/test-triggers-master-develop branch from b3e6a21 to e8c5844 Compare July 8, 2026 19:32
@gdevenyi
gdevenyi merged commit 901c9a1 into develop Jul 8, 2026
7 of 8 checks passed
@gdevenyi
gdevenyi deleted the ci/test-triggers-master-develop branch July 8, 2026 20:23
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.

2 participants