Skip to content

Commit 3499981

Browse files
GHA: Install the 'future' develop branch
1 parent d494ff8 commit 3499981

File tree

3 files changed

+35
-19
lines changed

3 files changed

+35
-19
lines changed

.github/workflows/R-CMD-check.yaml

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,19 @@ jobs:
1616
fail-fast: false
1717
matrix:
1818
config:
19-
- {os: windows-latest, r: 'devel' }
19+
# - {os: windows-latest, r: 'devel' }
2020
- {os: windows-latest, r: 'release' }
21-
- {os: windows-latest, r: 'oldrel' }
21+
# - {os: windows-latest, r: 'oldrel' }
2222
# - {os: macOS-latest, r: 'devel' }
23-
- {os: macOS-latest, r: 'release' }
24-
- {os: macOS-latest, r: 'oldrel' }
23+
# - {os: macOS-latest, r: 'release' }
24+
# - {os: macOS-latest, r: 'oldrel' }
2525
- {os: ubuntu-latest, r: 'devel' }
2626
- {os: ubuntu-latest, r: 'release' }
2727
- {os: ubuntu-latest, r: 'oldrel' }
28-
- {os: ubuntu-latest, r: 'oldrel-1' }
29-
- {os: ubuntu-latest, r: 'oldrel-2' }
30-
- {os: ubuntu-latest, r: '3.6' }
31-
- {os: ubuntu-latest, r: 'release' , language: ko, label: ko }
32-
- {os: ubuntu-latest, r: 'release', future_version: develop, label: 'w/ future-develop' }
33-
- {os: ubuntu-latest, r: 'release', future_version: feature/evalFuture-3, label: 'w/ future-feature/evalFuture-3' }
34-
28+
# - {os: ubuntu-latest, r: 'oldrel-1' }
29+
# - {os: ubuntu-latest, r: 'oldrel-2' }
30+
# - {os: ubuntu-latest, r: '3.6' }
31+
# - {os: ubuntu-latest, r: 'release' , language: ko, label: ko }
3532
env:
3633
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
3734
R_KEEP_PKG_SOURCE: yes
@@ -65,20 +62,20 @@ jobs:
6562
extra-packages: any::rcmdcheck
6663
needs: check
6764

68-
- name: Install package itself (special case)
69-
run: |
70-
install.packages(".", repos = NULL, type = "source") ## needed by parallel workers
71-
shell: Rscript {0}
72-
7365
- name: Test with specific future version?
7466
run: |
75-
future_version <- Sys.getenv("R_FUTURE_VERSION")
67+
future_version <- Sys.getenv("R_FUTURE_VERSION", "develop")
7668
if (nzchar(future_version)) {
7769
install.packages("remotes")
7870
remotes::install_github("futureverse/future", ref=future_version)
7971
}
8072
shell: Rscript {0}
8173

74+
- name: Install package itself (special case)
75+
run: |
76+
install.packages(".", repos = NULL, type = "source") ## needed by parallel workers
77+
shell: Rscript {0}
78+
8279
- name: Session info
8380
run: |
8481
options(width = 100)

.github/workflows/future_tests.yaml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,22 @@ jobs:
4242
any::rcmdcheck
4343
any::remotes
4444
needs: check
45+
46+
- name: Test with specific future version?
47+
run: |
48+
future_version <- Sys.getenv("R_FUTURE_VERSION", "develop")
49+
if (nzchar(future_version)) {
50+
install.packages("remotes")
51+
remotes::install_github("futureverse/future", ref=future_version)
52+
}
53+
shell: Rscript {0}
4554

4655
- name: Install R package dependencies
4756
run: |
4857
remotes::install_deps(dependencies = TRUE)
4958
install.packages(".", repos=NULL, type="source") ## needed by parallel workers
5059
shell: Rscript {0}
51-
60+
5261
- name: Install 'future.tests' and any backend R packages
5362
run: |
5463
remotes::install_cran("future.tests")

.github/workflows/test-coverage.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
on: [push]
1+
on:
2+
workflow_dispatch: # Enables manual triggering
23

34
name: covr
45

@@ -46,6 +47,15 @@ jobs:
4647
any::covr
4748
needs: check
4849

50+
- name: Test with specific future version?
51+
run: |
52+
future_version <- Sys.getenv("R_FUTURE_VERSION", "develop")
53+
if (nzchar(future_version)) {
54+
install.packages("remotes")
55+
remotes::install_github("futureverse/future", ref=future_version)
56+
}
57+
shell: Rscript {0}
58+
4959
- name: Install dependencies
5060
run: |
5161
remotes::install_deps(dependencies = TRUE)

0 commit comments

Comments
 (0)