-
Notifications
You must be signed in to change notification settings - Fork 1
74 lines (59 loc) · 2.65 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Test runs
on: [push, pull_request]
jobs:
test_run:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9, "3.10"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt install libzbar0
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Generate green pass for Gabriele Musterfrau (color, default)
run: ./green-pass-generator -o output-test-file -i input/gabriele-musterfraugoessinger.png
- name: Check if output files exist (color, default)
run: |
# files are not reproducible unfortunately, check only if existing
ls output-test-file.svg
ls output-test-file.pdf
ls output-test-file.png
- name: Generate green pass for Gabriele Musterfrau (black/white)
run: ./green-pass-generator -m bw -o output-test-file-bw -i input/gabriele-musterfraugoessinger.png
- name: Check if output files exist (black/white)
run: |
# files are not reproducible unfortunately, check only if existing
ls output-test-file-bw.svg
ls output-test-file-bw.pdf
ls output-test-file-bw.png
- name: Generate green pass for Gabriele Musterfrau to folder (color, default)
run: |
mkdir output-test
./green-pass-generator -O output-test -i input/gabriele-musterfraugoessinger.png
# files are not reproducible unfortunately, check only if existing
ls output-test/greenpass-gabriele-musterfraugoessinger.svg
ls output-test/greenpass-gabriele-musterfraugoessinger.png
ls output-test/greenpass-gabriele-musterfraugoessinger.pdf
- name: Generate green pass for Gabriele Musterfrau to folder (black/white)
run: |
mkdir output-test-bw
./green-pass-generator -m bw -O output-test-bw -i input/gabriele-musterfraugoessinger.png
# files are not reproducible unfortunately, check only if existing
ls output-test-bw/greenpass-gabriele-musterfraugoessinger.svg
ls output-test-bw/greenpass-gabriele-musterfraugoessinger.png
ls output-test-bw/greenpass-gabriele-musterfraugoessinger.pdf
- name: Install Inkscape
run: sudo apt install inkscape
- name: Run
run: ./green-pass-generator -o output-test-file-inkscape -c inkscape -i input/gabriele-musterfraugoessinger.png
- name: Check if Inkscape output exists
run: |
ls output-test-file-inkscape.svg
ls output-test-file-inkscape.pdf