Skip to content

Commit a84fe78

Browse files
Create verify.yaml
1 parent 4d6b3da commit a84fe78

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/verify.yaml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Linting & Testing
2+
3+
on:
4+
pull_request:
5+
6+
env:
7+
PYTHONPATH: ./python/src/main/
8+
9+
jobs:
10+
testing:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: "Checkout"
14+
uses: actions/checkout@v3
15+
16+
- uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.10'
19+
20+
- name: Install pipenv
21+
run: |
22+
pip install pipenv
23+
24+
- name: Install packages
25+
run: |
26+
pipenv sync --dev
27+
28+
- name: Create test report directory
29+
run: |
30+
mkdir test-report
31+
32+
- name: Docker Compose Setup
33+
uses: ndeloof/install-compose-action@v0.0.1
34+
with:
35+
version: v2.13.0
36+
37+
- name: Run test
38+
run: |
39+
pipenv run pytest python/src/test --junit-xml=test-report/report.xml
40+
41+
linting:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- name: "Checkout"
45+
uses: actions/checkout@v3
46+
47+
- uses: actions/setup-python@v4
48+
with:
49+
python-version: '3.10'
50+
51+
- name: Install linters
52+
run: |
53+
pip install black isort flake8
54+
55+
- name: black
56+
run: |
57+
python -m black --check python/src/main/
58+
59+
- name: isort
60+
run: |
61+
python -m isort python/src/main/ --multi-line 3 --profile black --check
62+
63+
- name: flake8
64+
run: |
65+
python -m flake8 python/src/main/

0 commit comments

Comments
 (0)