forked from GourmandRecipeManager/gourmand
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.28 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# 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: [main]
pull_request:
branches: [main]
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 Gourmand
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()