Skip to content

Commit 86a55a6

Browse files
rockett-mHalosGhost
authored andcommitted
ci: added pylint in github workflow to enforce code quality; fixes #264
This commit made with the assistance of github copilot Signed-off-by: Morgan Rockett <[email protected]>
1 parent fd50072 commit 86a55a6

File tree

7 files changed

+735
-218
lines changed

7 files changed

+735
-218
lines changed

.github/workflows/ci.yml

+29-8
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ env:
1818
jobs:
1919
build-release:
2020
name: Build Release Candidate
21-
runs-on: ubuntu-20.04
21+
runs-on: ubuntu-22.04
2222
env:
2323
BUILD_RELEASE: 1
2424
steps:
@@ -30,7 +30,7 @@ jobs:
3030
- name: Setup Local Dependencies
3131
run: ./scripts/setup-dependencies.sh
3232
- name: Build
33-
run: scripts/build.sh
33+
run: ./scripts/build.sh
3434
lint:
3535
name: Lint
3636
runs-on: ubuntu-20.04
@@ -43,12 +43,32 @@ jobs:
4343
- name: Setup Local Dependencies
4444
run: ./scripts/setup-dependencies.sh
4545
- name: Build
46-
run: scripts/build.sh
46+
run: ./scripts/build.sh
4747
- name: Lint
48-
run: scripts/lint.sh
48+
run: ./scripts/lint.sh
49+
pylint:
50+
name: Pylint
51+
runs-on: ubuntu-22.04
52+
continue-on-error: true
53+
timeout-minutes: 10
54+
strategy:
55+
matrix:
56+
python-version: ["3.10"]
57+
steps:
58+
- uses: actions/checkout@v2
59+
with:
60+
submodules: recursive
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
- name: Setup Build Env
66+
run: sudo ./scripts/install-build-tools.sh
67+
- name: Lint with Pylint
68+
run: ./scripts/pylint.sh
4969
unit-and-integration-test:
5070
name: Unit and Integration Tests
51-
runs-on: ubuntu-20.04
71+
runs-on: ubuntu-22.04
5272
timeout-minutes: 30
5373
steps:
5474
- uses: actions/checkout@v2
@@ -59,9 +79,9 @@ jobs:
5979
- name: Setup Local Dependencies
6080
run: ./scripts/setup-dependencies.sh
6181
- name: Build
62-
run: scripts/build.sh
82+
run: ./scripts/build.sh
6383
- name: Run Unit Tests
64-
run: scripts/test.sh
84+
run: ./scripts/test.sh
6585
- name: Shorten SHA
6686
id: vars
6787
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
@@ -76,7 +96,7 @@ jobs:
7696
retention-days: 7
7797
doxygen:
7898
name: doxygen
79-
runs-on: ubuntu-20.04
99+
runs-on: ubuntu-22.04
80100
steps:
81101
- uses: actions/checkout@v2
82102
with:
@@ -94,3 +114,4 @@ jobs:
94114
name: OpenCBDC Transaction Processor docs for ${{ steps.vars.outputs.sha_short }}
95115
path: ./doxygen_generated/html/*
96116
retention-days: 7
117+

0 commit comments

Comments
 (0)