Autotests #4
This file contains 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: Build and Test TensorFrost | |
on: | |
workflow_dispatch: | |
jobs: | |
test-tensorfrost: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.x' | |
- name: Install system dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libglfw3-dev libgl1-mesa-dev xvfb | |
- name: Install PyTorch | |
run: | | |
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu | |
- name: Install TensorFrost | |
run: | | |
pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ tensorfrost | |
- name: Install test dependencies | |
run: | | |
pip install -r requirements-test.txt | |
- name: Make test script executable | |
run: chmod +x run_tests.sh | |
- name: Run tests with Xvfb | |
run: | | |
xvfb-run -a ./run_tests.sh |