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

Commit ea527e5

Browse files
atualizacao de lints locais
1 parent c6fb66e commit ea527e5

File tree

2 files changed

+34
-22
lines changed

2 files changed

+34
-22
lines changed

examples/lambda_api/.github/workflows/pylint.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ name: Execute the pylint analysis
1313
# push: # Triggers on each pushed commit
1414
# branches:
1515
# - 'master'
16-
on: [ push ]
16+
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:
2324
python-version: [ "3.8", "3.9", "3.10" ]
@@ -28,11 +29,16 @@ jobs:
2829
with:
2930
python-version: ${{ matrix.python-version }}
3031
architecture: x64
31-
cache: 'pip'
32-
- name: Install dependencies
33-
run: |
34-
python -m pip install --upgrade pip
35-
pip install pylint
36-
- name: Analysing the code with pylint
37-
run: |
38-
pylint app.py lambda_app tests
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 ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
44+
pylint ./app.py ./lambda_app

examples/lambda_sqs/.github/workflows/pylint.yml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,12 @@ name: Execute the pylint analysis
1313
# push: # Triggers on each pushed commit
1414
# branches:
1515
# - 'master'
16-
on: [ push ]
16+
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:
2324
python-version: [ "3.8", "3.9", "3.10" ]
@@ -28,11 +29,16 @@ jobs:
2829
with:
2930
python-version: ${{ matrix.python-version }}
3031
architecture: x64
31-
cache: 'pip'
32-
- name: Install dependencies
33-
run: |
34-
python -m pip install --upgrade pip
35-
pip install pylint
36-
- name: Analysing the code with pylint
37-
run: |
38-
pylint app.py lambda_app tests
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 ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
44+
pylint ./app.py ./lambda_app

0 commit comments

Comments
 (0)