Skip to content

Commit 9db1de4

Browse files
authored
Skip one more test on macOS (#1324)
* Skip one more test on macOS * Add macOS-only CI runner * Adjust name to 'macos'
1 parent 26fcdb2 commit 9db1de4

File tree

3 files changed

+49
-1
lines changed

3 files changed

+49
-1
lines changed

.github/workflows/macos.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Run CI for R using https://eddelbuettel.github.io/r-ci/
2+
3+
name: macos
4+
5+
on:
6+
push:
7+
pull_request:
8+
9+
env:
10+
_R_CHECK_FORCE_SUGGESTS_: "false"
11+
12+
jobs:
13+
ci:
14+
strategy:
15+
matrix:
16+
include:
17+
- {os: macOS-latest}
18+
#- {os: ubuntu-latest}
19+
20+
runs-on: ${{ matrix.os }}
21+
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup
27+
uses: eddelbuettel/github-actions/r-ci-setup@master
28+
29+
- name: Bootstrap
30+
run: ./run.sh bootstrap
31+
32+
- name: Dependencies
33+
run: ./run.sh install_deps
34+
35+
- name: Test
36+
run: ./run.sh run_tests
37+
38+
#- name: Coverage
39+
# if: ${{ matrix.os == 'ubuntu-latest' }}
40+
# run: ./run.sh coverage

ChangeLog

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
2024-08-20 Dirk Eddelbuettel <[email protected]>
2+
3+
* inst/tinytest/test_sugar.R: Skip one more NA related test on arm64
4+
and macOS as failure is seen at r-universe on arm64
5+
6+
* .github/workflows/macos.yaml: Add basic r-ci setup but dialed-down
7+
to macOS only (as Linux is covered via multiple Docker setups)
8+
19
2024-08-19 Dirk Eddelbuettel <[email protected]>
210

311
* Contributing.md: Refreshed content

inst/tinytest/test_sugar.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ expect_error(strimws(x[1], "invalid"), info = "strimws -- bad `which` argument")
15671567
## min/max
15681568
# test.sugar.min.max <- function() {
15691569
## min(empty) gives NA for integer, Inf for numeric (#844)
1570-
expect_true(is.na(intmin(integer(0))), "min(integer(0))")
1570+
if (!isArmMacOs) expect_true(is.na(intmin(integer(0))), "min(integer(0))")
15711571
if (!isArmMacOs) expect_equal(doublemin(numeric(0)), Inf, info = "min(numeric(0))")
15721572

15731573
## max(empty_ gives NA for integer, Inf for numeric (#844)

0 commit comments

Comments
 (0)