Skip to content

add R tests

add R tests #86

Workflow file for this run

name: Run Tests
permissions:
contents: read
on:
pull_request:
push:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.head.repo.full_name || github.repository }}-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
test:
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
python-version: ['3.11', '3.12', '3.13', '3.14']
include:
- os: windows-latest
python-version: '3.11'
- os: macos-latest
python-version: '3.11'
steps:
- name: Checkout
uses: actions/checkout@v6.0.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6.1.0
with:
python-version: ${{ matrix.python-version }}
- name: Install uv
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.cargo/bin:$PATH"
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
shell: bash
- name: Install Python dependencies
run: |
cd python
uv sync --group test
shell: bash
- name: Run tests (Unix)
if: runner.os != 'Windows'
run: make python-test
shell: bash
- name: Run tests (Windows)
if: runner.os == 'Windows'
run: |
cd python
uv run pytest -q
shell: bash