Skip to content

Commit 6eb7c52

Browse files
Copilotcsett86
andcommitted
Add separate GitHub Actions job for Cairo-dependent tests
Co-authored-by: csett86 <1392875+csett86@users.noreply.github.com>
1 parent db19c41 commit 6eb7c52

1 file changed

Lines changed: 21 additions & 1 deletion

File tree

.github/workflows/tests.yml

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,26 @@ jobs:
4949
- name: Run tests with tox
5050
run: tox -e ${{ matrix.toxenv }}
5151

52+
test-cairo:
53+
runs-on: ubuntu-latest
54+
steps:
55+
- uses: actions/checkout@v6
56+
57+
- name: Set up Python
58+
uses: actions/setup-python@v6
59+
with:
60+
python-version: "3.12"
61+
cache: 'pip'
62+
63+
- name: Install Cairo dependencies
64+
run: sudo apt-get update && sudo apt-get install -y libcairo2-dev
65+
66+
- name: Install tox
67+
run: pip install tox
68+
69+
- name: Run Cairo tests with tox
70+
run: tox -e cairo
71+
5272
build:
5373
runs-on: ubuntu-latest
5474
steps:
@@ -107,7 +127,7 @@ jobs:
107127

108128
create-issue-on-failure:
109129
runs-on: ubuntu-latest
110-
needs: [test, build, docs]
130+
needs: [test, test-cairo, build, docs]
111131
if: always() && (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && github.event_name == 'schedule'
112132
permissions:
113133
issues: write

0 commit comments

Comments
 (0)