From 90a93337583ae5acace56fc622b8cf6ea27d74c3 Mon Sep 17 00:00:00 2001 From: Andreas Brandmaier Date: Sun, 24 Mar 2024 17:48:45 +0100 Subject: [PATCH 1/3] added installation via devtools --- .github/workflows/R-tests.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/R-tests.yml b/.github/workflows/R-tests.yml index 5904a80..4248ff5 100644 --- a/.github/workflows/R-tests.yml +++ b/.github/workflows/R-tests.yml @@ -10,15 +10,19 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: - - uses: actions/checkout@v3 +# - uses: actions/checkout@v3 - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true - uses: r-lib/actions/setup-r-dependencies@v2 with: - extra-packages: any::testthat - needs: pr-document + extra-packages: | + any::testthat + any::devtools +# needs: pr-document + - name: install package + run: devtools::install_package("brandmaier/semtree") - name: run test run: testthat::test_dir("tests/testthat/") From 3bef14e672beacb47f167e31a42f15a430b14e3e Mon Sep 17 00:00:00 2001 From: Andreas Brandmaier Date: Sun, 24 Mar 2024 21:36:09 +0100 Subject: [PATCH 2/3] re-added checkout --- .github/workflows/R-tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/R-tests.yml b/.github/workflows/R-tests.yml index 4248ff5..cdeb0e7 100644 --- a/.github/workflows/R-tests.yml +++ b/.github/workflows/R-tests.yml @@ -10,7 +10,7 @@ jobs: env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} steps: -# - uses: actions/checkout@v3 + - uses: actions/checkout@v3 - uses: r-lib/actions/setup-r@v2 with: use-public-rspm: true From bc3365400c966411124cbe851eaa3a58d9f1bb3f Mon Sep 17 00:00:00 2001 From: Andreas Brandmaier Date: Sun, 24 Mar 2024 21:37:36 +0100 Subject: [PATCH 3/3] changed cache flag --- .github/workflows/R-tests.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/R-tests.yml b/.github/workflows/R-tests.yml index cdeb0e7..7a4a9eb 100644 --- a/.github/workflows/R-tests.yml +++ b/.github/workflows/R-tests.yml @@ -17,6 +17,7 @@ jobs: - uses: r-lib/actions/setup-r-dependencies@v2 with: + cache-version: 2 extra-packages: | any::testthat any::devtools