Skip to content

Commit

Permalink
Merge pull request #42 from r-world-devs/maciekbanas/41/fix-pkgdown-j…
Browse files Browse the repository at this point in the history
…ob-when-merging

Try fix job, by installing GitAI locally.
  • Loading branch information
maciekbanas authored Nov 26, 2024
2 parents e5d6a7c + 82bbfb8 commit 84ac159
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,12 @@ jobs:
matrix:
config:
- {os: macos-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
#- {os: windows-latest, r: 'release'}
- {os: ubuntu-latest, r: 'release'}

env:
GITHUB_PAT: ${{ secrets.TEST_GITHUB_PAT }}
R_KEEP_PKG_SOURCE: yes
USE_RENV: "FALSE"

steps:
- uses: actions/checkout@v3
Expand All @@ -38,10 +37,11 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

- name: Install R dependencies
- uses: r-lib/actions/setup-renv@v2

- name: Install extra R dependencies
run: |
Rscript -e 'install.packages(c("pak", "GitStats", "dplyr", "purrr", "testthat", "xml2", "rcmdcheck"))'
Rscript -e 'pak::pak("tidyverse/elmer")'
Rscript -e 'renv::install("rcmdcheck")'
- uses: r-lib/actions/check-r-package@v2
with:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,13 @@ jobs:
with:
use-public-rspm: true

- name: Install R dependencies
- uses: r-lib/actions/setup-renv@v2

- name: Install extra R dependencies
run: |
Rscript -e 'install.packages(c("pkgdown", "remotes"))'
Rscript -e 'remotes::install_github("r-world-devs/GitAI")'
Rscript -e 'renv::install("pkgdown")'
Rscript -e 'renv::install(".")'
Rscript -e 'renv::restore(packages = "httr2")'
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ jobs:
with:
use-public-rspm: true

- name: Install R dependencies
- uses: r-lib/actions/setup-renv@v2

- name: Install extra R dependencies
run: |
Rscript -e 'install.packages(c("pak", "GitStats", "dplyr", "purrr", "covr", "testthat", "xml2"))'
Rscript -e 'pak::pak("tidyverse/elmer")'
Rscript -e 'renv::install(c("covr", "xml2"))'
- name: Test coverage
run: |
Expand Down
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: GitAI
Title: Extracts Knowledge From Git Repositories
Version: 0.0.0.9005
Version: 0.0.0.9006
Authors@R: c(
person("Kamil", "Wais", , "[email protected]", role = c("aut", "cre")),
person("Maciej", "Banas", , "[email protected]", role = "aut")
Expand Down
19 changes: 19 additions & 0 deletions renv/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"bioconductor.version": null,
"external.libraries": [],
"ignored.packages": [],
"package.dependency.fields": [
"Imports",
"Depends",
"LinkingTo"
],
"ppm.enabled": null,
"ppm.ignored.urls": [],
"r.version": null,
"snapshot.type": "implicit",
"use.cache": true,
"vcs.ignore.cellar": true,
"vcs.ignore.library": true,
"vcs.ignore.local": true,
"vcs.manage.ignores": true
}

0 comments on commit 84ac159

Please sign in to comment.