maint: change user facing language from RStudio to Posit (#322) #433
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Cross compatibility | |
on: | |
workflow_dispatch: | |
inputs: | |
r_pins_tag: | |
description: "Tag or commit from pins-r (e.g. v1.0.3)" | |
default: "__cran__" | |
required: true | |
push: | |
branches: ['main', 'dev-*'] | |
pull_request: | |
release: | |
types: [published] | |
env: | |
PINS_ALLOW_RSC_SHORT_NAME: 1 | |
PINS_FEATURE_PREVIEW: 1 | |
jobs: | |
check-cross-compatibility: | |
name: "Check cross lib compatibility" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install libcurl on Linux | |
run: sudo apt-get update -y && sudo apt-get install -y libcurl4-openssl-dev | |
# r --- | |
- uses: r-lib/actions/setup-r@v2 | |
with: | |
use-public-rspm: true | |
- name: Install R dependencies (from CRAN) | |
run: "install.packages('pins')" | |
shell: Rscript {0} | |
if: ${{ github.event.name != 'workflow_dispatch' || inputs.r_pins_tag == '__cran__' }} | |
- name: Install R dependencies (from github) | |
run: | | |
install.packages("remotes") | |
remotes::install_github(paste0('rstudio/pins-r@', Sys.getenv('R_PINS_TAG'))) | |
shell: Rscript {0} | |
env: | |
R_PINS_TAG: ${{ inputs.r_pins_tag }} | |
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
if: ${{ github.event.name == 'workflow_dispatch' && inputs.r_pins_tag != '__cran__' }} | |
# python --- | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.10" | |
- name: Install py dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements/dev.txt | |
python -m pip install -e . | |
# write and test --- | |
- name: Run script/ci-compat-check | |
run: make ci-compat-check |