| name: CI CPU |
|
|
| on: |
| push: |
| branches: |
| - main |
| pull_request: |
| branches: |
| - main |
|
|
| jobs: |
| build: |
| if: github.event.pull_request.draft == false || github.event_name == 'push' |
| runs-on: ubuntu-latest |
| |
|
|
| steps: |
| - name: Checkout code |
| uses: actions/checkout@v4 |
| with: |
| submodules: recursive |
|
|
| - name: Set up Python |
| uses: actions/setup-python@v4 |
| with: |
| python-version: "3.10" |
|
|
| - name: Free disk space |
| run: | |
| sudo rm -rf /usr/share/dotnet |
| sudo rm -rf /usr/local/lib/android |
| sudo rm -rf /opt/ghc |
| sudo rm -rf "/usr/local/share/boost" |
| |
| - name: Install dependencies |
| run: | |
| pip install --no-cache-dir pytest |
| pip install --no-cache-dir -r requirements.txt |
| sudo apt-get update && sudo apt-get install ffmpeg libsm6 libxext6 -y |
| |
| - name: Build and install |
| run: pip install --no-cache-dir . |
|
|
| - name: Run tests |
| |
| run: python -m pytest tests/ -s |
|
|