Skip to content

Commit

Permalink
Merge pull request #218 from pbulsink/check_dev_ff1
Browse files Browse the repository at this point in the history
Add dev fastf1 to test suite
  • Loading branch information
pbulsink authored Jan 22, 2024
2 parents 54504a3 + 9c9e8b5 commit da571a2
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/check-standard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit da571a2

Please sign in to comment.