Skip to content

[pre-commit.ci] pre-commit autoupdate #35

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #35

Workflow file for this run

name: Run tests
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8 pytest
if [ -f tests/test_requirements.txt ]; then python -m pip install -r tests/test_requirements.txt; fi
- name: Setup yt_idv
run: |
python -m pip install -e .
- name: Run Tests
run: pytest --html=report.html --self-contained-html
- uses: actions/upload-artifact@v2
name: Upload pytest report
with:
name: pytest-report
path: report.html