-
Notifications
You must be signed in to change notification settings - Fork 5
45 lines (44 loc) · 1.08 KB
/
pull-request.yaml
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: pull request
on:
pull_request:
push:
branches: [ main ]
jobs:
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.12'
- name: Install Requirements
run:
pip install -r requirements.txt
- name: Pylint
run:
pylint src/
- name: Black
run:
black --check ./
- name: Type Check (mypy)
run: mypy src --strict
- name: Unit Tests
run:
python -m pytest tests/unit
env:
NETWORK: 'mainnet'
NODE_URL: https://rpc.ankr.com/eth
PAYOUTS_SAFE_ADDRESS: '0x0000000000000000000000000000000000000000'
sqlfluff:
name: SQLFluff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Install SQLFluff
run: pip install sqlfluff
- name: Run SQLFluff
run: sqlfluff lint queries/