-
Notifications
You must be signed in to change notification settings - Fork 259
53 lines (43 loc) · 1.19 KB
/
python.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
name: Python
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python:
# - '2.7'
# - '3.6'
# - '3.7'
- '3.8'
- '3.9'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Update apt repositories
run: sudo apt-get update
- name: Install native dependencies
run: >
sudo apt-get install -y --no-install-recommends
gobject-introspection gir1.2-glib-2.0 gir1.2-keybinder-3.0 gir1.2-gtk-3.0 gir1.2-vte-2.91 gir1.2-notify-0.7
gettext intltool
libdbus-glib-1-dev libgirepository1.0-dev libcairo-dev
xvfb
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
python setup.py develop
- name: Compile all scripts
run: python -m compileall -f terminatorlib/ tests/ remotinator terminator
- name: Run tests
run: |
pip install -e '.[test]'
xvfb-run -a python setup.py test