[pre-commit.ci] pre-commit autoupdate #35
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.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 |