-
-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (35 loc) · 963 Bytes
/
python-test.yaml
File metadata and controls
45 lines (35 loc) · 963 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
39
40
41
42
43
44
45
name: Code Style + Testing
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@v2
- name: ssh agent
uses: webfactory/ssh-agent@v0.5.4
with:
ssh-private-key: |
${{ secrets.SSH_KEY_OF_GETDECK }}
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.10"
- name: Upgrade Pip
run: |
pip install --upgrade pip
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Install dependencies
run: |
poetry install --no-interaction --no-ansi
- name: Code Style
run: |
poetry run flake8 . --exit-zero
poetry run black --check .
- name: Testing
run: |
poetry run coverage run -m pytest .
- name: Coverage
run: |
poetry run coverage report -m