Make Moire compatible with Python 3.8 #31
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: Test | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install black~=23.1.0 flake8 pytest | |
- name: Check code style with Black | |
run: | | |
black -l 80 --check moire tests | |
- name: Lint with Flake8 | |
run: | | |
flake8 --max-line-length=80 --ignore=E203,W503,ANN002,ANN003,ANN101,ANN102 | |
- name: Test with pytest | |
run: | | |
pytest -v |