Skip to content

Update for newest Python #61

Update for newest Python

Update for newest Python #61

Workflow file for this run

name: Code style & unit tests
on:
push:
paths-ignore:
- pyproject.toml
- setup.cfg
- CHANGELOG.md
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version:
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "3.10"
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 dependencies
run: |
python -m pip install -U poetry pip wheel
python -m poetry config virtualenvs.create false
python -m poetry install -n
sudo npm install -g pyright
- name: Code style
run: |
python -m black --check newversion
python -m isort -c newversion
- name: Lint
run: |
python -m flake8
- name: Typing
run: |
npx pyright
- name: Test
run: |
python -m pytest