Skip to content

Merge pull request #94 from yt-project/pre-commit-ci-update-config #374

Merge pull request #94 from yt-project/pre-commit-ci-update-config

Merge pull request #94 from yt-project/pre-commit-ci-update-config #374

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9]
steps:
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get upgrade
sudo apt install libgl1-mesa-dri libegl1-mesa libgbm1 libosmesa6 libosmesa6-dev
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f tests/test_requirements.txt ]; then python -m pip install -r tests/test_requirements.txt; fi
python -m pip install --upgrade numpy PyOpenGL_accelerate
- name: Setup yt_idv
run: |
python -m pip install -e .
- name: Run Tests
env:
PYOPENGL_PLATFORM: osmesa
run: pytest --html=report.html --self-contained-html
- uses: actions/upload-artifact@v3
name: Upload pytest report
with:
name: pytest-report
path: report.html