Skip to content
This repository was archived by the owner on May 23, 2023. It is now read-only.

Commit 8e60a05

Browse files
Merge pull request #11 from madeiramadeirabr/hotfix_ymls
fix commands
2 parents 2202b3f + 0b45bf2 commit 8e60a05

File tree

6 files changed

+1195
-40
lines changed

6 files changed

+1195
-40
lines changed

.github/workflows/pylint.yml

Lines changed: 24 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,35 @@ name: Execute the pylint analysis
1616
on: [push]
1717

1818
jobs:
19-
build:
20-
runs-on: ubuntu-latest
19+
setup-environment:
20+
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
21+
runs-on: ubuntu-18.04
2122
strategy:
2223
matrix:
23-
# python-version: [ '3.x', 'pypy-3.7', 'pypy-3.8' ]
24-
python-version: ["3.8", "3.9", "3.10"]
25-
name: Python ${{ matrix.python-version }} sample
24+
python-version: [ "3.8", "3.9", "3.10" ]
2625
steps:
2726
- uses: actions/checkout@v2
28-
- name: Set up Python
27+
- name: Set up Python ${{ matrix.python-version }}
2928
uses: actions/setup-python@v2
3029
with:
3130
python-version: ${{ matrix.python-version }}
3231
architecture: x64
33-
cache: 'pip'
34-
- name: Install dependencies
35-
run: |
36-
python -m pip install --upgrade pip
37-
pip install pylint
38-
- name: Analysing the code with pylint
39-
- run: pylint ./examples/*/app.py ./examples/*/*
32+
pylint:
33+
runs-on: ubuntu-18.04
34+
needs: setup-environment
35+
steps:
36+
- uses: actions/checkout@v2
37+
- name: Install pylint
38+
run: |
39+
python -m pip install --upgrade pip
40+
pip install pylint
41+
- name: Execute pylint
42+
run: |
43+
# pylint ./examples/*/app.py ./examples/*/lambda_app ./examples/*/tests/unit ./examples/*/tests/integration ./examples/*/tests/component
44+
# pylint --rcfile ./.pylintrc ./examples/*/app.py ./examples/*/lambda_app
45+
source ./scripts/variables.sh
46+
for example_path in "${arr[@]}"
47+
do
48+
echo "Pylint in ${example_path} ..."
49+
pylint --rcfile ./.pylintrc ${example_path}app.py ${example_path}lambda_app
50+
done

0 commit comments

Comments
 (0)