add readme #9
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: test | |
on: | |
push: | |
branches: [main] | |
pull_request: {} | |
jobs: | |
test_python: | |
name: Tests on ${{ matrix.os }}, Python ${{ matrix.python-version }} | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ["3.8"] | |
include: | |
- os: ubuntu-latest | |
python-version: "3.9" | |
- os: ubuntu-latest | |
python-version: "3.10" | |
- os: ubuntu-latest | |
python-version: "3.11" | |
- os: ubuntu-latest | |
python-version: "3.12" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: "pip" | |
# Lint, typecheck, test | |
- name: Install marimo-labs with dev dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[dev] | |
- name: Lint | |
run: | | |
ruff check marimo_labs/ | |
- name: Typecheck | |
if: ${{ matrix.python-version == '3.9' || matrix.python-version == '3.10' }} | |
run: | | |
mypy --config-file pyproject.toml marimo_labs/ | |
- name: Test | |
run: | | |
pytest -v tests/ |