Skip to content

Fix annotation and namespace issue (continued) #40

Fix annotation and namespace issue (continued)

Fix annotation and namespace issue (continued) #40

Workflow file for this run

name: CI
on:
push:
branches: ['main']
pull_request:
jobs:
Test:
strategy:
matrix:
os: [ubuntu-latest]
python: [3.7, 3.8, 3.9]
include:
- os: macos-latest
python: 3.9
- os: windows-latest
python: 3.9
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 rply
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run tests
run: python test.py
Coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v1
with:
python: 3.9
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage coveralls rply
- name: Test coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coverage run test.py
coveralls --service=github