Skip to content

Commit 5170895

Browse files
committed
解开tests
1 parent f0b0c2c commit 5170895

File tree

2 files changed

+25
-25
lines changed

2 files changed

+25
-25
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,17 +91,17 @@ jobs:
9191
find '${{ runner.temp }}/package' -name 'testthat.Rout*' -exec cat '{}' \; || true
9292
shell: bash
9393

94-
# - name: Upload test results
95-
# if: failure()
96-
# uses: actions/upload-artifact@v4
97-
# with:
98-
# name: coverage-test-failures
99-
# path: ${{ runner.temp }}/package
94+
- name: Upload test results
95+
if: failure()
96+
uses: actions/upload-artifact@v4
97+
with:
98+
name: coverage-test-failures
99+
path: ${{ runner.temp }}/package
100100

101-
# - uses: codecov/codecov-action@v5
102-
# with:
103-
# fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
104-
# file: ./cobertura.xml
105-
# plugin: noop
106-
# disable_search: true
107-
# token: ${{ secrets.CODECOV_TOKEN }}
101+
- uses: codecov/codecov-action@v5
102+
with:
103+
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
104+
file: ./cobertura.xml
105+
plugin: noop
106+
disable_search: true
107+
token: ${{ secrets.CODECOV_TOKEN }}

tests/testthat.R

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
# * https://testthat.r-lib.org/reference/test_package.html#special-files
88

99

10-
# if (Sys.getenv("GITHUB_ACTIONS") == "true") {
11-
# fprintf("RETICULATE_PYTHON: %s\n", Sys.getenv("RETICULATE_PYTHON"))
10+
if (Sys.getenv("GITHUB_ACTIONS") == "true") {
11+
fprintf("RETICULATE_PYTHON: %s\n", Sys.getenv("RETICULATE_PYTHON"))
1212

13-
# Sys.setenv(RETICULATE_PYTHON = Sys.which("python")) # Set Python interpreter
14-
# reticulate::use_python(Sys.which("python")) # double confirm
13+
Sys.setenv(RETICULATE_PYTHON = Sys.which("python")) # Set Python interpreter
14+
reticulate::use_python(Sys.which("python")) # double confirm
1515

16-
# rgeeLite::ee_auth_ci()
17-
# } else {
18-
# rgeeLite::ee_Init() # Initialize rgeeLite
19-
# }
16+
rgeeLite::ee_auth_ci()
17+
} else {
18+
rgeeLite::ee_Init() # Initialize rgeeLite
19+
}
2020

21-
# library(testthat)
22-
# library(rgee)
23-
# library(rgeeLite)
21+
library(testthat)
22+
library(rgee)
23+
library(rgeeLite)
2424

25-
# test_check("rgeeLite")
25+
test_check("rgeeLite")

0 commit comments

Comments
 (0)