Skip to content

Update actions

Update actions #63

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.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: "20"
- name: Install dependencies
run: |
python -m pip install -U poetry pip wheel
python -m poetry install -n
sudo npm install -g pyright
- name: Code style
run: |
poetry run black --check .
poetry run isort -c .
- name: Lint
run: |
poetry run flake8
- name: Typing
run: |
poetry run npx pyright
- name: Test
run: |
poetry run pytest