Skip to content

Merge pull request #49 from srittau/dependabot/pip/mypy-1.3.0 #81

Merge pull request #49 from srittau/dependabot/pip/mypy-1.3.0

Merge pull request #49 from srittau/dependabot/pip/mypy-1.3.0 #81

Workflow file for this run

name: Test and lint
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: "**/poetry.lock"
- name: Install poetry
run: pip --disable-pip-version-check install -U poetry
- name: Install Python dependencies
run: poetry install
- name: Type checking with mypy
run: |
poetry run mypy --version
poetry run mypy htmlgen test_htmlgen
- name: Test with unittest
run: poetry run python -Wall -m unittest discover -t . -s test_htmlgen -p "*.py"