Skip to content

Commit 689f5ea

Browse files
authored
Add GitHub Actions workflow for Avelio Contract Guard
1 parent 1d95d01 commit 689f5ea

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/avelio.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Avelio Contract Guard
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**/*.py'
7+
- '**/*.yaml'
8+
- '**/*.yml'
9+
10+
jobs:
11+
avelio:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Setup Python
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: '3.11'
22+
23+
- name: Install dependencies
24+
run: pip install pyyaml
25+
26+
- name: Download Avelio core
27+
run: |
28+
curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/avelio_core.py -o avelio_core.py
29+
curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/ast_parser.py -o ast_parser.py
30+
curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/contract_validator.py -o contract_validator.py
31+
32+
- name: Run Avelio
33+
run: python avelio_core.py
34+
env:
35+
BASE_DIR: ${{ github.workspace }}

0 commit comments

Comments
 (0)