Add per-question LLM/Standard mode toggle for async peer instruction (discussion) #9
Workflow file for this run
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: Tests | |
| on: | |
| pull_request: | |
| paths: | |
| - 'components/rsptx/db/**' | |
| - 'components/rsptx/configuration/**' | |
| - 'components/rsptx/validation/**' | |
| - 'components/rsptx/response_helpers/**' | |
| - 'components/rsptx/endpoint_validators/**' | |
| - 'bases/rsptx/book_server_api/**' | |
| - 'bases/rsptx/assignment_server_api/**' | |
| - 'test/**' | |
| - '.github/workflows/test-crud.yml' | |
| - 'pyproject.toml' | |
| jobs: | |
| crud-tests: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| env: | |
| POSTGRES_USER: runestone | |
| POSTGRES_PASSWORD: runestone | |
| POSTGRES_DB: runestone_test | |
| ports: | |
| - 5432:5432 | |
| options: >- | |
| --health-cmd pg_isready | |
| --health-interval 10s | |
| --health-timeout 5s | |
| --health-retries 5 | |
| env: | |
| SERVER_CONFIG: test | |
| TEST_DBURL: postgresql://runestone:runestone@localhost:5432/runestone_test | |
| DROP_TABLES: "Yes" | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Poetry | |
| uses: snok/install-poetry@v1 | |
| with: | |
| virtualenvs-create: true | |
| virtualenvs-in-project: true | |
| - name: Cache Poetry virtualenv | |
| uses: actions/cache@v4 | |
| with: | |
| path: .venv | |
| key: venv-${{ runner.os }}-py3.10-${{ hashFiles('pyproject.toml', 'poetry.lock') }} | |
| restore-keys: | | |
| venv-${{ runner.os }}-py3.10- | |
| - name: Install dependencies | |
| run: poetry install --with dev --no-interaction | |
| - name: Create stub static asset directories | |
| run: | | |
| mkdir -p bases/rsptx/assignment_server_api/react | |
| mkdir -p bases/rsptx/assignment_server_api/staticAssets | |
| - name: Run tests | |
| run: | | |
| poetry run pytest -v --tb=short |