Merge branch 'Yura3313-master' #42
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and test | |
on: [push] | |
jobs: | |
build: | |
runs-on: ${{matrix.os}} | |
strategy: | |
matrix: | |
python: ["3.11", "3.12"] | |
os: ["ubuntu-latest", "windows-latest"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{matrix.python}} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{matrix.python}} | |
- name: Install poetry | |
run: | | |
pip install pipx | |
pipx install poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Linting code by ruff | |
run: | | |
poetry run ruff check . | |
- name: Check types by pyright | |
run: | | |
poetry run pyright . | |
- name: Run unit-tests | |
run: poetry run python -m unittest |