format + remove unreachable code #144
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: ARC build for Windows | |
on: [push] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
python-version: ["3.6", "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: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest black "black[jupyter]" | |
pip install wheel twine | |
pip install -r requirements.txt | |
- name: Check | |
run: | | |
# stop the build if there are Python syntax errors or undefined names | |
flake8 --version | |
flake8 . --count --show-source --statistics | |
black --version | |
black -l 80 . --check | |
python -m compileall -f arc/*.py | |
- name: Build | |
run: | | |
python setup.py build | |
python setup.py sdist |