diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index 26287752..9600afac 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 }}) dev 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