-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (41 loc) · 1.19 KB
/
test.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
name: Test/Validate
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: check out code
uses: actions/checkout@v3
# Python dependencies
- name: setup Python
uses: actions/setup-python@v4
with:
python-version: 3.9
#- name: install Poetry
# uses: snok/[email protected]
#- name: cache Poetry virtualenv
# uses: actions/cache@v2
# id: poetry-cache
# with:
# path: ~/.virtualenvs/
# key: poetry-${{ hashFiles('**/poetry.lock') }}
# restore-keys: |
# poetry-${{ hashFiles('**/poetry.lock') }}
#- name: set poetry config path
# run: poetry config virtualenvs.path ~/.virtualenvs
#- name: install python dependencies
# run: poetry install
- name: install needed deps
run: pip install black flake8
- name: lint with black
# run: poetry run black --diff --check .
run: black --diff --check .
- name: lint with flake8
# run: poetry run flake8 api --show-source --statistics
run: flake8 --show-source --statistics .