[pre-commit.ci] pre-commit autoupdate #442
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: Run tests | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: [3.9, '3.10', '3.11'] | |
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 osmesa | |
run: | | |
sudo apt-get update && sudo apt-get upgrade | |
sudo apt-get install libosmesa6-dev | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Setup yt_idv | |
run: python -m pip install -e .[test] | |
- 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 |