Merge pull request #89 from scs/chore/update-dependencies #334
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: Python code checks | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| branches: | |
| - master | |
| workflow_dispatch: | |
| jobs: | |
| check_python_code: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| name: Code checks with Python ${{ matrix.python-version }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Poetry | |
| run: pipx install poetry~=2.1.3 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: "poetry" | |
| - name: Setup project with Poetry | |
| run: | | |
| python --version; python -m pip --version; poetry --version | |
| poetry install --no-interaction | |
| - name: Check code style | |
| run: poetry run poe format_check | |
| - name: Check import order | |
| run: poetry run poe isort_check | |
| - name: Lint with pylint | |
| run: poetry run poe lint_check | |
| - name: Run unit tests | |
| run: poetry run poe test |