mirror of
https://github.com/soxoj/maigret.git
synced 2026-05-06 22:19:01 +00:00
e84e394e6f
* Bump svglib from 1.5.1 to 1.6.0 Bumps [svglib](https://github.com/deeplook/svglib) from 1.5.1 to 1.6.0. - [Changelog](https://github.com/deeplook/svglib/blob/main/CHANGELOG.rst) - [Commits](https://github.com/deeplook/svglib/commits) --- updated-dependencies: - dependency-name: svglib dependency-version: 1.6.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Add libcairo2-dev to CI workflow for svglib 1.6.0 compatibility (#2304) * Initial plan * Add libcairo2-dev system dependency install step to test workflow Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> Agent-Logs-Url: https://github.com/soxoj/maigret/sessions/3ecab70e-d4a3-4e74-9245-bffc58d6d0a3 --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: soxoj <31013580+soxoj@users.noreply.github.com>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: Linting and testing
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update && sudo apt-get install -y libcairo2-dev
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install poetry
|
|
python -m poetry install --with dev
|
|
- name: Test with Coverage and Pytest (Fail if coverage is low)
|
|
run: |
|
|
poetry run coverage run --source=./maigret -m pytest --reruns 3 --reruns-delay 5 tests
|
|
poetry run coverage report --fail-under=60
|
|
poetry run coverage html
|
|
- name: Upload coverage report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: htmlcov-${{ strategy.job-index }}
|
|
path: htmlcov |