[Docs] CLI Documentation #380
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: Playground and Example Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| playground-tests: | |
| name: playground-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: "pip" | |
| - name: Install system dependencies | |
| run: sudo apt-get update && sudo apt-get install -y libgc-dev | |
| - name: Install project | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| - name: Build libspy | |
| run: | | |
| cd spy/libspy | |
| make | |
| - name: Run playground tests | |
| run: | | |
| pytest playground/tests/ -v | |
| - name: Run examples | |
| run: | | |
| pytest -n auto examples |