@@ -50,26 +50,57 @@ jobs:
5050 uses : astral-sh/setup-uv@v6
5151 with :
5252 version : " 0.8.3"
53- enable-cache : false
53+ enable-cache : true
5454
5555 - name : Test python/qt combinations
5656 uses : coactions/setup-xvfb@v1
5757 with :
58- run : bash scripts/test-matrix.sh
58+ run : bash scripts/test-matrix.sh --parallel
5959
60- # combine-coverage:
61- # needs: tests
62- # name: combine and report coverage
63- # runs-on: ubuntu-latest
64- #
65- # steps:
66- # - uses: actions/checkout@v4
67- # - run: pip install coverage
68- #
69- # - name: Download all coverage artifacts
70- # uses: actions/download-artifact@v4
71- # with:
72- # path: coverage-artifacts
73- #
74- # - name: Comment with coverage report
75- # uses: MishaKav/pytest-coverage-comment@v1
60+ - name : Collect test coverage
61+ run : |
62+ uv run coverage combine --quiet
63+ uv run coverage report --sort=cover
64+ mv .coverage .coverage-${{ matrix.os }}
65+
66+ - name : Upload coverage artifacts
67+ uses : actions/upload-artifact@v4
68+ with :
69+ name : coverage-${{ matrix.os }}
70+ path : .coverage-${{ matrix.os }}
71+ include-hidden-files : true
72+
73+ combine-coverage :
74+ needs : tests
75+ name : combine and report test coverage
76+ runs-on : ubuntu-latest
77+ permissions :
78+ # new comments in pull requests
79+ pull-requests : write
80+ # permissions for pushing to python-coverage-comment-action branch
81+ # for editing existing comments
82+ contents : write
83+
84+ steps :
85+ - name : Checkout
86+ uses : actions/checkout@v4
87+
88+ - name : Download coverage artifacts
89+ uses : actions/download-artifact@v4
90+ with :
91+ pattern : coverage-*
92+ merge-multiple : true
93+
94+ - name : Coverage report
95+ uses : py-cov-action/python-coverage-comment-action@v3.35
96+ with :
97+ GITHUB_TOKEN : ${{ github.token }}
98+ MERGE_COVERAGE_FILES : true
99+
100+ # - name: Collect test coverage
101+ # run: |
102+ # pip install coverage
103+ # coverage combine --quiet coverage/
104+
105+ # - name: Comment with coverage report
106+ # uses: MishaKav/pytest-coverage-comment@v1
0 commit comments