-
Notifications
You must be signed in to change notification settings - Fork 2
38 lines (35 loc) · 934 Bytes
/
python-checker.yml
File metadata and controls
38 lines (35 loc) · 934 Bytes
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
name: Python Checker
on:
push:
branches:
- master
paths:
- 'FakeGreenPassGenerator/**'
pull_request:
branches:
- 'feature/**'
- master
jobs:
build:
runs-on: ubuntu-latest
env:
working-dir: ./FakeGreenPassGenerator
generation-dir: genqr
steps:
- name: checkout repo content
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: '3.9'
cache: 'pip'
- name: install pip dependencies
run: pip install -r requirements.txt
working-directory: ${{env.working-dir}}
- name: execute python script
run: |
python main-generator.py -l 0
working-directory: ${{env.working-dir}}
- name: check correct image creation
run: find -L ${{env.generation-dir}} -name "*.png"
working-directory: ${{env.working-dir}}