Skip to content

Updated the README to show the build status #5

Updated the README to show the build status

Updated the README to show the build status #5

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# Note: github's parser has a bug and read 3.10 as 3.1, see https://github.com/actions/runner/issues/1989
name: build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
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 CI dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi
- name: Run tests
run: |
python setup.py test
- name: Check static types
run: |
mypy --strict --ignore-missing-imports guesslang/
- name: Check code quality
run: |
flake8 .
- name: Check package installation
run: |
pip install .