Skip to content

v0.1.18 submit function; ci jobs (#71) #83

v0.1.18 submit function; ci jobs (#71)

v0.1.18 submit function; ci jobs (#71) #83

Workflow file for this run

name: CI
on: [push]
jobs:
pre-commit:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_backend
with:
python-version: ${{ matrix.python-version }}
- run: pre-commit run --all-files
types:
needs: [pre-commit]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_backend
with:
python-version: ${{ matrix.python-version }}
- run: pyright .
tests:
needs: [pre-commit, types]
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.12"]
streamlit-version: ["1.25", "1.36", "latest"]
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup_frontend
- uses: ./.github/actions/setup_backend
with:
python-version: ${{ matrix.python-version }}
streamlit-version: ${{ matrix.streamlit-version }}
- run: playwright install
- run: python -m pytest tests/
# run playwright tests & save screenshots
- run: python -m pytest tests/playwright.py --verbose
- uses: actions/upload-artifact@v4
with:
name: screenshots-${{ matrix.python-version }}-${{ matrix.streamlit-version }}
path: tests/screenshots/