terminator/.github/workflows/python.yml

54 lines
1.2 KiB
YAML
Raw Permalink Normal View History

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:
# - '2.7'
# - '3.6'
# - '3.7'
2020-04-17 16:03:58 +00:00
- '3.8'
- '3.9'
2020-04-17 16:03:58 +00:00
steps:
- uses: actions/checkout@v2
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 }}
- 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