IliaLarchenko
commited on
Merge branch 'master' of https://github.com/IliaLarchenko/albumentations-demo
Browse files
.github/workflows/pythonapp.yml
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Python application
|
2 |
+
|
3 |
+
on: [push]
|
4 |
+
|
5 |
+
jobs:
|
6 |
+
build:
|
7 |
+
|
8 |
+
runs-on: ubuntu-latest
|
9 |
+
|
10 |
+
steps:
|
11 |
+
- uses: actions/checkout@v1
|
12 |
+
- name: Set up Python 3.7
|
13 |
+
uses: actions/setup-python@v1
|
14 |
+
with:
|
15 |
+
python-version: 3.7
|
16 |
+
- name: Install dependencies
|
17 |
+
run: |
|
18 |
+
python -m pip install --upgrade pip
|
19 |
+
pip install -r requirements.txt
|
20 |
+
- name: Lint with flake8
|
21 |
+
run: |
|
22 |
+
pip install flake8
|
23 |
+
# stop the build if there are Python syntax errors or undefined names
|
24 |
+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
25 |
+
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
26 |
+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=88 --statistics
|
27 |
+
- name: Test with pytest
|
28 |
+
run: |
|
29 |
+
pip install pytest
|
30 |
+
pytest
|