Skip to content

[codex] align provider API endpoint contracts #394

[codex] align provider API endpoint contracts

[codex] align provider API endpoint contracts #394

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths:
- 'python/**'
- 'R/R/**'
- 'R/tests/**'
- '.github/workflows/tests.yml'
pull_request:
branches: [main]
paths:
- 'python/**'
- 'R/R/**'
- 'R/tests/**'
workflow_dispatch:
jobs:
python-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest pytest-cov ruff
cd python
pip install -e .[dev]
- name: Lint
run: |
cd python
ruff check mllmcelltype tests
- name: Test
run: |
cd python
pytest --cov=mllmcelltype tests/
r-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up R
uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'
use-public-rspm: true
- name: Install R dependencies
uses: r-lib/actions/setup-r-dependencies@v2
with:
working-directory: R
extra-packages: any::devtools
needs: tests
- name: Test R package
run: |
cd R
Rscript -e 'devtools::test()'