Adopt documentation theme from pyData #269
Workflow file for this run
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: Merge Test | |
on: | |
push: | |
branches: | |
- master | |
- v*.* | |
pull_request: | |
branches: | |
- master | |
- v*.* | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
max-parallel: 3 | |
matrix: | |
python-version: [3.7, 3.8, "3.9", "3.10"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Prepare environment | |
run: | | |
python3 -m pip install --upgrade pip | |
pip install -e . | |
- name: Lint with flake8 | |
run: | | |
pip install -e .[dev] | |
flake8 . --count --show-source --statistics | |
- name: Check with MyPy | |
run: | | |
pip install -e .[test] | |
mypy source unit-tests system-tests | |
- name: Test with pytest | |
run: | | |
pip install .[test] | |
pytest --cov stylist --cov-fail-under=75 |