models.history:History.log - allow extra keywords in the message #14
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 & Test | |
on: | |
push | |
env: | |
PYTHON_VERSION: 3.11.5 | |
POETRY_VERSION: 1.8.2 | |
jobs: | |
linting: | |
name: Check Linting & Types | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- run: poetry install | |
- name: ruff | |
run: poetry run ruff check acacore | |
- name: black | |
run: poetry run black --check acacore | |
version: | |
name: Test Version | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: | | |
project_name="$(grep --color=never 'name *= *".*"' pyproject.toml)" | |
project_name="${project_name%\"}" | |
project_name="${project_name#*\"}" | |
version_project="$(grep --color=never 'version *= *".*"' pyproject.toml)" | |
version_project="${version_project%\"}" | |
version_project="${version_project#*\"}" | |
version_package="$(grep --color=never '__version__ *= *".*"' "$project_name"/__version__.py)" | |
version_package="${version_package%\"}" | |
version_package="${version_package#*\"}" | |
test "$version_project" = "$version_package" | |
echo $? | |
pytest: | |
name: pytest | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ env.PYTHON_VERSION }} | |
- uses: abatilo/actions-poetry@v2 | |
with: | |
poetry-version: ${{ env.POETRY_VERSION }} | |
- uses: actions/setup-go@v4 | |
- run: poetry install | |
- run: go install github.com/richardlehane/siegfried/cmd/sf@latest | |
- name: Unit test | |
env: | |
GOPATH: /home/runner/go | |
run: | | |
poetry run coverage run -m pytest | |
poetry run coverage report -m --fail-under=80 --skip-empty --skip-covered |