Skip to content

Commit 69b4575

Browse files
committed
1 parent 12b91f5 commit 69b4575

File tree

7 files changed

+269
-339
lines changed

7 files changed

+269
-339
lines changed

.github/workflows/python-app.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
1+
# This workflow will install Python dependencies, run tests, formatting and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python application
4+
name: tests
55

66
on:
77
push:
@@ -16,10 +16,10 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v2
19-
- name: Set up Python 3.9
19+
- name: Set up Python 3.6.13
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.9
22+
python-version: 3.6.13
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
@@ -31,6 +31,9 @@ jobs:
3131
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
3232
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3333
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
34+
- name: Format with black
35+
run: |
36+
black .
3437
- name: Test with pytest
3538
run: |
3639
pytest

.github/workflows/unit_tests.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: tests
2+
on: [push]
3+
jobs:
4+
build-image:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- run: docker
8+
echo:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- run: echo "hello from github actions!"

poetry.lock

Lines changed: 62 additions & 30 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ fastapi = "^0.63.0"
1010
uvicorn = "^0.13.4"
1111
scikit-learn = "^0.24.2"
1212
loguru = "^0.5.3"
13+
black = "^21.9b0"
1314

1415
[tool.poetry.dev-dependencies]
1516
flake8 = "^3.9.1"

0 commit comments

Comments
 (0)