Skip to content

Merge pull request #3 from commercetest/julianharty-patch-1 #8

Merge pull request #3 from commercetest/julianharty-patch-1

Merge pull request #3 from commercetest/julianharty-patch-1 #8

# 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']
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
if [ -f requirements.txt ]; then pip install -r requirements.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 .