-
Notifications
You must be signed in to change notification settings - Fork 11
47 lines (45 loc) · 1.34 KB
/
ci.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
46
47
name: Continuous Integration
on: [pull_request]
jobs:
flake8-lint:
runs-on: ubuntu-latest
name: Lint
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: flake8 Lint
uses: py-actions/flake8@v1
with:
# ignore: "F401"
# exclude: "src/ignoreme.py"
max-line-length: "120"
path: "./"
pytest:
runs-on: ubuntu-latest
needs: flake8-lint
name: Unit Tests
env:
POLYGONSCAN_API_KEY: ${{ secrets.POLYGONSCAN_API_KEY }}
WEB3_INFURA_PROJECT_ID: ${{ secrets.WEB3_INFURA_PROJECT_ID }}
PREFECT_API_KEY: ${{ secrets.PREFECT_API_KEY }}
PREFECT_API_URL: ${{ secrets.PREFECT_API_URL }}
PYTHONUNBUFFERED: 1
steps:
- name: Check out source repository
uses: actions/checkout@v2
- name: Set up Python environment
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements1.txt -r requirements2.txt
# - name: Run tests with pytest
# run: pytest
- name: Run smoketest
run: bash scripts/smoketest.sh