GitHub Actions install tests
Source:vignettes/dev-github-actions-install-tests.Rmd
dev-github-actions-install-tests.RmdThis note explains the purpose of EJAM’s installation checks and how to interpret their results. The workflow files are the source of truth for triggers, inputs, R versions, operating systems, installation methods, and individual steps. Consult the file on the branch or tag you intend to run.
Choosing a workflow
| Workflow file | Purpose |
|---|---|
.github/workflows/install-quick-check.yaml |
Quick feedback on whether EJAM can be installed and loaded during development. |
.github/workflows/install-release-user-check.yaml |
Broader installation checks for release validation and user installation paths. |
.github/workflows/check-standard.yaml |
R CMD check, which examines package behavior and requirements beyond installation alone. |
For the supported user installation procedure, see the installation instructions.
Release install-check triggers and scopes
For
.github/workflows/install-release-user-check.yaml:
| Trigger | Manual test_scope
|
Checks selected |
|---|---|---|
| Release-tag push | Not applicable | Prepared-runner installation checks |
| GitHub Release published | Not applicable | User-style installation checks |
| Manual | user-style |
User-style installation checks |
| Manual | full-matrix |
Prepared-runner installation checks |
| Manual | ubuntu-only |
Prepared-runner installation checks on Ubuntu |
| Manual | both |
Prepared-runner and user-style installation checks |
Consult the workflow file for the available platforms and R versions.
What the checks tell you
An installation check and a package check answer different questions.
A package can install and load successfully while still having failing
tests, examples, or other package checks. Read the selected workflow to
see what a successful run actually covers. The
--install-tests installation option only copies tests into
the installed package; it does not execute them.
Required dependencies and optional packages listed under
Suggests also have different coverage. A successful basic
installation does not establish that optional packages or the features
using them work.
It also matters how dependencies were obtained. A runner with dependencies prepared in advance can demonstrate that EJAM installs with those dependencies. Following the user installation procedure can reveal problems obtaining them. A binary dependency can install without compilation, while installing it from source may require compilers and system libraries. A user-style check can therefore fail even when a prepared-runner check passes.
If a run fails, identify the affected R version and platform, then inspect the failed step. A dependency installation failure may need a different response from a failure installing, loading, or testing EJAM itself. R-devel checks give early warning about compatibility with a future R release; compare their results with the checks on released R versions.
Dependency declarations are in DESCRIPTION. Verification
helpers used by the workflows are in .github/scripts/;
consult the referenced scripts for the checks they perform.
Choosing the workflow and package revision
For a manual release install check, two choices serve different purposes:
- Use workflow from selects the branch or tag containing the workflow definition. It determines which steps, inputs, and scope choices are available.
-
refselects the package branch, tag, or commit to install and test.
For example, use a working branch’s workflow to test a specific package commit. This keeps the package source fixed while you try workflow changes. Older tags may contain older workflow definitions, so confirm both selections before running.
The Run workflow button appears only when the
workflow exists on the repository’s default branch (main
for EJAM). Once available, Use workflow from lets you
select another branch or tag’s definition.
Test workflow changes on their working branch before promoting them through the project’s integration and release process. A successful run against a branch does not by itself establish that a release tag installs successfully; validate the release revision as well.