forked from altdesktop/python-dbus-next
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (47 loc) · 1.18 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Tests
on:
push:
pull_request:
jobs:
test:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/setup-python@v5
with:
python-version: |
3.8
3.9
3.10
3.11
3.12
pypy3.9
pypy3.10
- name: Install gi
run: |
sudo dd of=/etc/dpkg/dpkg.cfg.d/docker-apt-speedup <<< force-unsafe-io
sudo apt install libgirepository1.0-dev gir1.2-glib-2.0
- id: cache-pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: pip-${{ runner.os }}
save-always: true
- name: Install tox
run: python3.12 -m pip install tox
- uses: actions/checkout@v4
- name: Run test suite
continue-on-error: true
run: tox
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
files: |
test-results/**/junit*.xml
- name: Archive Test Results
uses: actions/upload-artifact@v4
if: always()
with:
name: Test Results
path: test-results/**/*