Skip to content

Adding type checking #16

Adding type checking

Adding type checking #16

Workflow file for this run

name: CI Code Checks
on: [pull_request]
jobs:
build:
name: code checks
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt
python -m nltk.downloader stopwords
- name: Checking formatting and analysing the code with pylint and flake8
run: make lint
- name: Type checking with mypy
run: mypy --config mypy.ini -p snowball
- name: Running tests
run: make test
- name: Creating coverage folder
run: |
mkdir -p coverage
- name: Coverage Badge
uses: tj-actions/coverage-badge-py@v1.8
with:
output: coverage/coverage.svg
- name: Publish coverage report to coverage-badge branch
uses: JamesIves/github-pages-deploy-action@v4
with:
branch: coverage-badge
folder: coverage