Skip to content

Commit a620512

Browse files
committed
add GH_PAT
1 parent 8c32f97 commit a620512

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/basic_checks.yaml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ jobs:
44
runs-on: ubuntu-latest
55
container: bioconductor/bioconductor_docker:RELEASE_3_11
66
env:
7+
# Add PAT to the entire job to authenticate all GitHub API calls
8+
GITHUB_PAT: ${{ secrets.GH_PAT }}
79
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
10+
811
steps:
912
- name: Checkout code
1013
run: |
@@ -28,23 +31,13 @@ jobs:
2831
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
2932
sudo -s eval "$sysreqs"
3033
31-
# Change: This step is now more robust. It uses BiocManager to install
32-
# dependencies before installing the local package.
3334
- name: Install dependencies
3435
run: |
3536
options(repos = c(CRAN = "https://cloud.r-project.org"))
3637
install.packages("remotes")
37-
38-
# Get all dependencies from the DESCRIPTION file
3938
deps <- remotes::dev_package_deps(dependencies = TRUE)
40-
41-
# Use the robust BiocManager installer to handle all dependencies
4239
BiocManager::install(deps$package, update = FALSE, ask = FALSE)
43-
44-
# Install the local package itself (dependencies are already installed)
4540
remotes::install_local(dependencies = FALSE)
46-
47-
# Install rcmdcheck separately
4841
BiocManager::install("rcmdcheck", update = FALSE, ask = FALSE)
4942
shell: Rscript {0}
5043

0 commit comments

Comments
 (0)