1212 LAMBDA_PATH : ${{ github.workspace }}/lambdas
1313
1414jobs :
15- lint :
16- name : Lint specification and Python projects
15+ lint-specification :
16+ name : Lint specification
17+ runs-on : ubuntu-latest
18+
19+ steps :
20+ - uses : actions/checkout@v5
21+
22+ - uses : actions/setup-node@v5
23+ with :
24+ node-version : " 23.11.0"
25+ cache : " npm"
26+
27+ - name : Install linting dependencies
28+ run : make install-node
29+
30+ - name : Lint
31+ run : make lint
32+
33+ lint-python :
34+ name : Lint Python projects
1735 runs-on : ubuntu-latest
1836
1937 steps :
@@ -22,23 +40,22 @@ jobs:
2240 - name : Install poetry
2341 run : pip install poetry==2.1.4
2442
25- # Base linting requires 3.8 due to APIM package dependencies. See root README for details under linting.
26- # Consider upgrading this and poetry deps if we move away from Azure DevOps to using the Proxygen tool.
2743 - uses : actions/setup-python@v6
2844 with :
29- python-version : 3.8
30- cache : ' poetry'
31-
32- - uses : actions/setup-node@v5
33- with :
34- node-version : ' 23.11.0'
35- cache : ' npm'
45+ python-version : 3.11
46+ cache : " poetry"
3647
3748 - name : Install linting dependencies
38- run : make install-node && poetry install --no-root
49+ run : poetry install --no-root
50+ working-directory : quality_checks
3951
4052 - name : Lint
41- run : make lint
53+ run : poetry run make lint
54+ working-directory : quality_checks
55+
56+ - name : Check formatting
57+ run : poetry run make format-check
58+ working-directory : quality_checks
4259
4360 testcoverage_and_sonarcloud :
4461 name : Test Coverage and SonarCloud
5370 - uses : actions/setup-python@v6
5471 with :
5572 python-version : 3.11
56- cache : ' poetry'
73+ cache : " poetry"
5774
5875 - name : Set up AWS credentials
5976 env :
@@ -110,7 +127,7 @@ jobs:
110127 working-directory : delta_backend
111128 id : delta
112129 env :
113- PYTHONPATH : delta_backend/src:delta_backend/tests
130+ PYTHONPATH : delta_backend/src:delta_backend/tests
114131 continue-on-error : true
115132 run : |
116133 poetry install
@@ -144,9 +161,9 @@ jobs:
144161 PYTHONPATH : ${{ env.LAMBDA_PATH }}/ack_backend/src:${{ github.workspace }}/ack_backend/tests
145162 continue-on-error : true
146163 run : |
147- poetry install
148- poetry run coverage run --source=src -m unittest discover || echo "ack-lambda tests failed" >> ../../failed_tests.txt
149- poetry run coverage xml -o ../../ack-lambda-coverage.xml
164+ poetry install
165+ poetry run coverage run --source=src -m unittest discover || echo "ack-lambda tests failed" >> ../../failed_tests.txt
166+ poetry run coverage xml -o ../../ack-lambda-coverage.xml
150167
151168 - name : Run unittest with coverage-mns-subscription
152169 working-directory : lambdas/mns_subscription
0 commit comments