File tree Expand file tree Collapse file tree 1 file changed +0
-39
lines changed
Expand file tree Collapse file tree 1 file changed +0
-39
lines changed Original file line number Diff line number Diff line change 99 branches : [ "main" ]
1010
1111jobs :
12- lint :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v4
16- - name : Set up Python 3.9
17- uses : actions/setup-python@v5
18- with :
19- python-version : " 3.9"
20- - name : Install dependencies
21- run : |
22- python -m pip install --upgrade pip
23- pip install pylint
24- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
25- - name : Analysing the code with pylint
26- run : |
27- echo "# Lint results" >> $GITHUB_STEP_SUMMARY
28- echo '```' >> $GITHUB_STEP_SUMMARY
29- pylint main.py >> $GITHUB_STEP_SUMMARY
30- echo '```' >> $GITHUB_STEP_SUMMARY
31- test :
32- needs : lint
33- runs-on : ubuntu-latest
34- steps :
35- - uses : actions/checkout@v4
36- - name : Set up Python 3.9
37- uses : actions/setup-python@v5
38- with :
39- python-version : " 3.9"
40- - name : Install dependencies
41- run : |
42- python -m pip install --upgrade pip
43- pip install pytest pytest-asyncio pytest-mock
44- if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
45- - name : Test with pytest
46- run : |
47- echo "# Test results" >> $GITHUB_STEP_SUMMARY
48- echo '```' >> $GITHUB_STEP_SUMMARY
49- pytest >> $GITHUB_STEP_SUMMARY
50- echo '```' >> $GITHUB_STEP_SUMMARY
5112 call-docker-build :
5213 needs : test
5314 uses : ethdevops/workflows/.github/workflows/basic-docker-build.yaml@main
You can’t perform that action at this time.
0 commit comments