Bump to v1.4.0 #127
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: linting | |
on: | |
push: | |
branches: | |
- master | |
- stable | |
pull_request: | |
branches: | |
- master | |
- stable | |
jobs: | |
lint: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: | | |
pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
# TODO: Remove explicit Python version once bug with .python-version file is solved | |
# https://github.com/actions/setup-python/issues/734 | |
python-version: '3.12' | |
cache: 'poetry' | |
- name: Install package | |
run: | | |
poetry install | |
- name: Run tests | |
env: | |
NO_COLORS: true # Disable colors in ruff output | |
run: | | |
echo "::add-matcher::.github/matchers/mypy.json" | |
echo "::add-matcher::.github/matchers/ruff.json" | |
echo "::add-matcher::.github/matchers/unbehead.json" | |
poetry run -- make lint --keep-going | |
echo "::remove-matcher owner=unbehead::" | |
echo "::remove-matcher owner=ruff::" | |
echo "::remove-matcher owner=mypy::" |