Merge pull request #17 from gnome-terminator/ci

Add GitHub action for Python
This commit is contained in:
Markus Frosch 2020-04-17 18:18:29 +02:00 committed by GitHub
commit 6e1ea606e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 41 additions and 0 deletions

41
.github/workflows/python.yml vendored Normal file
View File

@ -0,0 +1,41 @@
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'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install native dependencies
run: sudo apt-get install -y --no-install-recommends gobject-introspection gir1.2-keybinder-3.0 gettext intltool libdbus-glib-1-dev libgirepository1.0-dev libcairo-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Compile all scripts
run: python -m compileall -f terminatorlib/ tests/ remotinator terminator
- name: Run legacy tests
run: bash run_tests