2020-04-17 16:03:58 +00:00
|
|
|
name: Python
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python:
|
2021-02-18 22:38:22 +00:00
|
|
|
# - '2.7'
|
2020-05-09 08:24:05 +00:00
|
|
|
# - '3.6'
|
|
|
|
# - '3.7'
|
2020-04-17 16:03:58 +00:00
|
|
|
- '3.8'
|
2021-02-18 22:38:22 +00:00
|
|
|
- '3.9'
|
2020-04-17 16:03:58 +00:00
|
|
|
|
|
|
|
steps:
|
2023-09-12 22:53:52 +00:00
|
|
|
- uses: actions/checkout@v4
|
2020-04-17 16:20:43 +00:00
|
|
|
|
2020-04-17 16:03:58 +00:00
|
|
|
- name: Set up Python ${{ matrix.python }}
|
|
|
|
uses: actions/setup-python@v1
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python }}
|
|
|
|
|
2020-06-19 13:50:59 +00:00
|
|
|
- name: Update apt repositories
|
|
|
|
run: sudo apt-get update
|
|
|
|
|
2020-04-17 16:15:46 +00:00
|
|
|
- name: Install native dependencies
|
2020-05-01 15:13:48 +00:00
|
|
|
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
|
2020-05-07 20:14:32 +00:00
|
|
|
xvfb
|
2020-04-17 16:15:46 +00:00
|
|
|
|
2020-04-17 16:03:58 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
pip install -e .
|
2020-05-01 14:43:20 +00:00
|
|
|
python setup.py develop
|
2020-04-17 16:15:46 +00:00
|
|
|
|
2020-04-17 16:03:58 +00:00
|
|
|
- name: Compile all scripts
|
|
|
|
run: python -m compileall -f terminatorlib/ tests/ remotinator terminator
|
|
|
|
|
2020-05-01 14:43:20 +00:00
|
|
|
- name: Run tests
|
2020-05-01 15:38:28 +00:00
|
|
|
run: |
|
|
|
|
pip install -e '.[test]'
|
2020-05-07 20:14:32 +00:00
|
|
|
xvfb-run -a python setup.py test
|