Debian Codegraph @

.github/workflows/tests.yml

raw
1 name: CairoSVG's tests
2 on: [push, pull_request]
3
4 jobs:
5 tests:
6 name: ${{ matrix.os }} - ${{ matrix.python-version }}
7 runs-on: ${{ matrix.os }}
8 strategy:
9 matrix:
10 os: [ubuntu-latest]
11 python-version: ['3.10', '3.14']
12 steps:
13 - uses: actions/checkout@v4
14 with:
15 submodules: true
16 - uses: actions/setup-python@v5
17 with:
18 python-version: ${{ matrix.python-version }}
19 - name: Install CairoSVG
20 run: pip install --upgrade -e.[test]
21 - name: Setup fonts
22 run: |
23 mkdir ~/.fonts
24 cp ./test_non_regression/resources/*.*tf ~/.fonts
25 fc-cache -f -v
26 - name: Install tests’ requirements
27 run: python -m pip install .[test] pytest-xdist
28 - name: Launch tests
29 run: python -m pytest -n auto
30 - name: Check coding style
31 run: python -m flake8
32 - name: Check imports order
33 run: python -m isort . --check --diff