specimba's picture
feat: wire sponsor evidence lanes
142cbad verified
Raw
History Blame Contribute Delete
898 Bytes
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
jobs:
test:
name: Python tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- name: Compile
run: python -m compileall app.py src tests
- name: Import app
env:
NEXUS_DISABLE_REAL_HF: "1"
run: python -c "import app; print('app import ok')"
- name: Test
env:
NEXUS_DISABLE_REAL_HF: "1"
PYTEST_DISABLE_PLUGIN_AUTOLOAD: "1"
run: python -m pytest -q tests -p no:cacheprovider