-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (46 loc) · 1.51 KB
/
pre-merge.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
48
name: pre-merge
run-name: ${{ github.actor }} pre-merge checks
on: [pull_request]
jobs:
linting:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install hatch
- run: hatch run dev:lint
test_examples:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- run: pip install hatch
- run: hatch run examples:uniswap --seed 101
- run: hatch run examples:uniswap --seed 202
- run: hatch run examples:uniswap --seed 303
- run: hatch run examples:uniswap --seed 404
- run: hatch run examples:uniswap --seed 505 --batch_runner
- run: hatch run examples:aave --seed 606
- run: hatch run examples:aave --seed 707
- run: hatch run examples:aave --seed 808
- run: hatch run examples:aave --seed 909
- run: hatch run examples:aave --seed 1010 --batch_runner
python_docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install hatch 🐣
run: pip install hatch
- name: Install verbs-examples and build docs 📚
run: hatch run sphinx:build
- name: Test doc examples
run: hatch run sphinx:test