Spaces:
Running on Zero
Running on Zero
| name: test | |
| on: | |
| push: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - run: python -m pip install -r requirements-test.txt | |
| - run: python -m compileall -q . | |
| - run: >- | |
| python -m pyflakes app.py config.py gradio_ui.py | |
| core gateway_mcp models routes utils tests | |
| - run: >- | |
| python -m pycodestyle --max-line-length=100 --ignore=E203,W503 | |
| app.py config.py gradio_ui.py core gateway_mcp models routes utils tests | |
| - run: pytest -q | |