forked from qtile/qtile
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (60 loc) · 2.59 KB
/
ci.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
55
56
57
58
59
60
61
62
63
name: ci
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-22.04
name: "python ${{ matrix.python-version }}"
strategy:
matrix:
# If you change one of these, be sure to update:
# - /tox.ini:[gh-actions]
# - /setup.cfg:[mypy]
# - /libqtile/scripts/check.py mypy argument
# If adding new python versions, consider also updating
# python version in .readthedocs.yaml
python-version: [pypy-3.9, 3.9, '3.10', '3.11']
steps:
- uses: actions/checkout@v2
- name: Set up python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt update
# Any Wayland-specific Ubuntu system dependencies should be installed from ./scripts/ubuntu_wayland_setup
sudo apt install --no-install-recommends \
libdbus-1-dev libgirepository1.0-dev gir1.2-gtk-3.0 gir1.2-notify-0.7 gir1.2-gudev-1.0 graphviz \
imagemagick libpulse-dev git xserver-xephyr xterm xvfb dbus-x11 libnotify-bin \
libxcb-composite0-dev libxcb-icccm4-dev libxcb-res0-dev libxcb-render0-dev libxcb-res0-dev \
libxcb-xfixes0-dev vlc volumeicon-alsa
sudo pip -q install meson PyGObject
pip -q install "tox<4" tox-gh-actions
bash -x ./scripts/ubuntu_wayland_setup
- name: Run Tests
run: |
[ "$(grep -c -P '\t' CHANGELOG)" = "0" ]
tox
- name: Upload coverage data to coveralls.io
# For speed purposes, we don't do coverage reporting on pypy 3.9
if: ${{ matrix.python-version != 'pypy-3.9' }}
run: |
pip -q install coveralls >=3.3.0
coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: ${{ matrix.python-version }}
COVERALLS_PARALLEL: true
COVERALLS_SERVICE_JOB_ID: ${{ github.run_id }}
coverage:
name: Finalize Coverage
needs: build
runs-on: ubuntu-20.04
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true