From 11c5a7e4e27a047fd817a77e7b907143fae37c66 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 17 Apr 2020 18:03:58 +0200 Subject: [PATCH 1/2] Add GitHub action for Python --- .github/workflows/python.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/python.yml diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml new file mode 100644 index 00000000..2cac03e6 --- /dev/null +++ b/.github/workflows/python.yml @@ -0,0 +1,38 @@ +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 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 From 57f2607554ac095c6e23f4a2800a3532a5bcefc8 Mon Sep 17 00:00:00 2001 From: Markus Frosch Date: Fri, 17 Apr 2020 18:15:46 +0200 Subject: [PATCH 2/2] ci: Add native dependencies --- .github/workflows/python.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 2cac03e6..aea972da 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -26,11 +26,14 @@ jobs: 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