From 30784e2639509f60d44fbd5edcaed6617e28bb23 Mon Sep 17 00:00:00 2001 From: Neal Richardson Date: Wed, 19 Jun 2024 08:03:04 -0400 Subject: [PATCH] Set core.autocrlf on windows GHA --- .github/workflows/R-CMD-check.yaml | 4 ++++ tests/testthat/test-gps_traces.R | 11 ----------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 74d8c974..87b73f49 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -29,6 +29,10 @@ jobs: R_KEEP_PKG_SOURCE: yes steps: + - name: Configure git + if: runner.os == 'Windows' + run: git config --global core.autocrlf false + - uses: actions/checkout@v4 - uses: r-lib/actions/setup-pandoc@v2 diff --git a/tests/testthat/test-gps_traces.R b/tests/testthat/test-gps_traces.R index f9b5bcda..e5ec462e 100644 --- a/tests/testthat/test-gps_traces.R +++ b/tests/testthat/test-gps_traces.R @@ -60,17 +60,6 @@ test_that("osm_get_points_gps works", { test_that("edit gpx works", { - skip_on_os("windows") # TODO: issue in httptest2? different mock file name in windows - # https://github.com/nealrichardson/httptest2/issues/42 - # Error in `stop_request(req)`: An unexpected request was made: - # POST https://master.apis.dev.openstreetmap.org/api/0.6/gpx/create Multipart form: - # file = File: f42901c4e0e077e532e417da5224df67 - # description = Test create gpx with osmapiR. - # tags = testing, osmapiR - # visibility = private - # - # Expected mock file: osm.org/api/0.6/gpx/create-b3940a-POST.* - gpx_path <- test_path("sample_files", "sample.gpx") with_mock_dir("mock_edit_gpx", {