From 147a1776e2b31808ccbec586be1dc3e433efac21 Mon Sep 17 00:00:00 2001 From: Philip Bulsink Date: Sun, 21 Jan 2024 21:10:29 -0500 Subject: [PATCH 1/2] Add dev fastf1 to test suite --- .github/workflows/check-standard.yaml | 56 +++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 26287752..ee6201b1 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -205,3 +205,59 @@ jobs: - uses: r-lib/actions/check-r-package@v2 with: upload-snapshots: true + + R-CMD-check-dev-ff1: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) old fastf1 + + strategy: + fail-fast: false + matrix: + config: + - {os: ubuntu-latest, r: 'release'} + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v3 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.config.r }} + http-user-agent: ${{ matrix.config.http-user-agent }} + use-public-rspm: true + + - uses: actions/setup-python@v4 + with: + python-version: "3.x" + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + + - name: setup r-reticulate venv + shell: Rscript {0} + run: | + python_packages <- c("numpy") + + library(reticulate) + virtualenv_create("r-reticulate", Sys.which("python")) + virtualenv_install("r-reticulate", python_packages) + #force dev version install with repl python from reticulate + repl_python(quiet = TRUE) + %pip install git+https://github.com/theOehrly/Fast-F1.git + exit + + path_to_python <- virtualenv_python("r-reticulate") + writeLines(sprintf("RETICULATE_PYTHON=%s", path_to_python), + Sys.getenv("GITHUB_ENV")) + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true From 9c9e8b5fcf1bbeb2133a550d2b466cde9d1ce6cc Mon Sep 17 00:00:00 2001 From: Philip Bulsink Date: Mon, 22 Jan 2024 15:10:55 -0500 Subject: [PATCH 2/2] Update check-standard.yaml Rename dev version check for clarity --- .github/workflows/check-standard.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index ee6201b1..9600afac 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -209,7 +209,7 @@ jobs: R-CMD-check-dev-ff1: runs-on: ${{ matrix.config.os }} - name: ${{ matrix.config.os }} (${{ matrix.config.r }}) old fastf1 + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) dev fastf1 strategy: fail-fast: false