Bump actions/checkout from 4 to 6 #9
This file contains hidden or 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: CI | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| jobs: | |
| repository: | |
| name: Repository checks | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Check repository layout | |
| shell: bash | |
| run: | | |
| test -f README.md | |
| test -f LICENSE.md | |
| test -f R/rdmulti/DESCRIPTION | |
| test -f Python/rdmulti/pyproject.toml | |
| test -f Python/rdmulti/setup.cfg | |
| test -f stata/stata.toc | |
| test -f stata/rdmulti.pkg | |
| python-build: | |
| name: Python build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install build tools | |
| run: python -m pip install --upgrade pip build pytest | |
| - name: Install Python package | |
| working-directory: Python/rdmulti | |
| run: python -m pip install -e . | |
| - name: Run Python tests | |
| working-directory: Python/rdmulti | |
| run: python -m pytest | |
| env: | |
| MPLBACKEND: Agg | |
| - name: Build Python package | |
| working-directory: Python/rdmulti | |
| run: python -m build | |
| r-check: | |
| name: R CMD check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| - name: Set up R | |
| uses: r-lib/actions/setup-r@v2 | |
| with: | |
| use-public-rspm: true | |
| - name: Set up Pandoc | |
| uses: r-lib/actions/setup-pandoc@v2 | |
| - name: Install R dependencies | |
| run: | | |
| repos <- c(RSPM = Sys.getenv("RSPM"), CRAN = "https://cloud.r-project.org") | |
| install.packages(c("ggplot2", "rdrobust"), repos = repos) | |
| shell: Rscript {0} | |
| - name: Install R package | |
| run: R CMD INSTALL R/rdmulti | |
| - name: Run R numerical baseline | |
| run: Rscript R/rdmulti/tests/numerical-contracts.R | |
| env: | |
| RDMULTI_REPO_ROOT: ${{ github.workspace }} | |
| - name: Build R source package | |
| run: R CMD build R/rdmulti | |
| - name: Check R package | |
| run: R CMD check rdmulti_*.tar.gz --no-manual |