Add support for local httpstatus #228
Workflow file for this run
This file contains 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 Quality and Lint | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'wikibaseintegrator/**.py' | |
- 'test/**.py' | |
pull_request: | |
branches: [ '**' ] | |
paths: | |
- 'wikibaseintegrator/**.py' | |
- 'test/**.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Set up Python 3.12 | |
uses: actions/[email protected] | |
with: | |
python-version: '3.12' | |
cache: 'poetry' | |
# Need to install poetry again in the new python version | |
- name: Install poetry | |
run: python -m pip install poetry | |
- name: Install dependencies | |
run: | | |
python -m poetry install --with dev | |
- name: isort imports check | |
run: | | |
python -m poetry run isort --check --diff wikibaseintegrator test | |
- name: mypy typing check | |
run: | | |
python -m poetry run mypy --install-types --non-interactive | |
- name: pylint code linting | |
run: | | |
python -m poetry run pylint wikibaseintegrator test || python -m poetry run pylint-exit $? | |
- name: codespell spell checking | |
run: | | |
python -m poetry run codespell wikibaseintegrator test | |
- name: flynt string formatter converting | |
run: | | |
python -m poetry run flynt -f wikibaseintegrator test |