Download .github/workflows/ci.yml from Farshadm/beampilot: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/spaces/Farshadm/beampilot/resolve/main/.github/workflows/ci.yml
- Command line
-
hf download hf://spaces/Farshadm/beampilot/.github/workflows/ci.yml
-
curl -L -o ci.yml https://huggingface.co/spaces/Farshadm/beampilot/resolve/main/.github/workflows/ci.yml
1.08 kB
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install package | |
| run: python -m pip install -e ".[dev]" | |
| - name: Ruff lint | |
| run: ruff check . | |
| - name: Ruff format check | |
| run: ruff format --check . | |
| - name: Pytest | |
| run: pytest | |
| demo: | |
| # The Gradio demo is an optional extra; this job builds its interface | |
| # (without launching it) so that test is not skipped. | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install package with the demo extra | |
| run: python -m pip install -e ".[dev,demo]" | |
| - name: Demo tests | |
| run: pytest tests/test_demo.py -rs | |