Skip to content

20240208_123427

20240208_123427 #44

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Tests
on:
push:
branches: [master]
pull_request:
branches: [master]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04]
steps:
- uses: actions/checkout@v2
- name: Install Ubuntu dependencies
run: >
sudo apt-get update -q && sudo apt-get install
--no-install-recommends -y xvfb python3-dev python3-gi
python3-gi-cairo gir1.2-gtk-3.0 libgirepository1.0-dev libcairo2-dev
intltool enchant python3-enchant gir1.2-poppler-0.18 python3-gst-1.0
python3-testresources
- name: Install build dependencies
run: |
sudo pip3 install --upgrade pip setuptools wheel
- name: Install Gourmet
run: sudo pip3 install -r development.in
- name: Test with pytest
run: LANGUAGE=de_DE.utf-8 xvfb-run -a pytest -vv tests/test_*
- name: Check imports ordering
run: >
isort --diff src/**/*.py &&
isort -c src/**/*.py
if: always()