Merge pull request #20 from SpoddyCoder/pcm-feed-aggregation #239
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: Tests | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| env: | |
| SDL_AUDIODRIVER: disk | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| submodules: recursive | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| cache: pip | |
| cache-dependency-path: | | |
| requirements.txt | |
| requirements-dev.txt | |
| requirements-torch-cpu.txt | |
| - name: Install system dependencies | |
| run: | | |
| sudo find /etc/apt/sources.list.d/ -type f \( -name '*microsoft*' -o -name '*azure-cli*' \) -delete | |
| sudo apt-get update | |
| sudo apt-get install -y libgl1 libglx-mesa0 libegl1 libgl1-mesa-dri libgl-dev libegl-dev xvfb | |
| - name: Install Python dependencies | |
| run: | | |
| pip install -r requirements-torch-cpu.txt | |
| pip install -r requirements-dev.txt | |
| - name: Run unit tests | |
| run: xvfb-run -a ./tests/run_unit_tests.py |