Skip to content

feat: 脚本输入 schema 契约 + 可选常驻 worker 池 #3

feat: 脚本输入 schema 契约 + 可选常驻 worker 池

feat: 脚本输入 schema 契约 + 可选常驻 worker 池 #3

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
# Cancel superseded runs on the same ref.
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip
cache-dependency-path: |
backend/requirements.txt
backend/requirements-dev.txt
- name: Install dependencies
working-directory: backend
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-dev.txt
- name: Run pytest
working-directory: backend
run: python -m pytest