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

Commit 793f2a3

Browse files
ajustes pylint
1 parent 67d62c7 commit 793f2a3

File tree

2 files changed

+77
-2
lines changed

2 files changed

+77
-2
lines changed

.github/workflows/pylint.yml renamed to .github/workflows/lambda_api_pylint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
- name: Set up requirements ${{ matrix.python-version }}
4848
run: |
4949
python -m pip install --upgrade pip
50-
python -m pip install -r ./requirements.txt -t .
51-
python -m pip install -r ./requirements-vendor.txt -t .
50+
python -m pip install -r ./examples/lambda_api/requirements.txt -t .
51+
python -m pip install -r ./examples/lambda_api/requirements-vendor.txt -t .
5252
pylint:
5353
name: Setup pylint (Ubuntu 18.04)
5454
runs-on: ubuntu-18.04
@@ -68,6 +68,7 @@ jobs:
6868
pip install pylint
6969
- name: Execute pylint
7070
run: |
71+
cd ./examples/lambda_api
7172
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
7273
# pylint ./app.py ./boot.py ./flambda_app
7374
./scripts/pylint.sh
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Summary:
2+
# Execute the pylint analysis on code
3+
# Read here for mode info: https://pylint.pycqa.org/en/latest/ and https://www.python.org/dev/peps/pep-0008/
4+
5+
name: Execute the pylint analysis
6+
7+
#on:
8+
# # There are several ways to trigger Github actions - See https://help.github.com/en/actions/reference/events-that-trigger-workflows#example-using-a-single-event for a comprehensive list:
9+
# # - "push": Triggers each time a commit is pushed
10+
# # - "pull_request": Triggers each time a commit is pushed within a pull request, it makes it much easier to write comments within the PR, but it suffers some strong limitations:
11+
# # - There is no way to trigger when a PR is merged into another - See https://github.community/t/pull-request-action-does-not-run-on-merge/16092?u=vadorequest
12+
# # - It won't trigger when the PR is conflicting with its base branch - See https://github.community/t/run-actions-on-pull-requests-with-merge-conflicts/17104/2?u=vadorequest
13+
# push: # Triggers on each pushed commit
14+
# branches:
15+
# - 'master'
16+
on: [ push ]
17+
18+
jobs:
19+
setup-environment:
20+
name: Setup deployment environment (Ubuntu 18.04 - Python 3.x)
21+
runs-on: ubuntu-18.04
22+
strategy:
23+
matrix:
24+
# python-version: [ "3.8", "3.9" ]
25+
python-version: [ "3.8" ]
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python ${{ matrix.python-version }}
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
architecture: x64
33+
setup-project:
34+
name: Setup project (Ubuntu 18.04 - Python 3.x)
35+
runs-on: ubuntu-18.04
36+
strategy:
37+
matrix:
38+
python-version: [ "3.8" ]
39+
needs: setup-environment
40+
steps:
41+
- uses: actions/checkout@v2
42+
- name: Set up Python ${{ matrix.python-version }}
43+
uses: actions/setup-python@v2
44+
with:
45+
python-version: ${{ matrix.python-version }}
46+
architecture: x64
47+
- name: Set up requirements ${{ matrix.python-version }}
48+
run: |
49+
python -m pip install --upgrade pip
50+
python -m pip install -r ./examples/lambda_sqs/requirements.txt -t .
51+
python -m pip install -r ./examples/lambda_sqs/requirements-vendor.txt -t .
52+
pylint:
53+
name: Setup pylint (Ubuntu 18.04)
54+
runs-on: ubuntu-18.04
55+
strategy:
56+
matrix:
57+
python-version: [ "3.8" ]
58+
needs: setup-project
59+
steps:
60+
- uses: actions/checkout@v2
61+
- name: Set up Python ${{ matrix.python-version }}
62+
uses: actions/setup-python@v2
63+
with:
64+
python-version: ${{ matrix.python-version }}
65+
architecture: x64
66+
- name: Install pylint
67+
run: |
68+
pip install pylint
69+
- name: Execute pylint
70+
run: |
71+
cd ./examples/lambda_sqs
72+
# pylint ./app.py ./lambda_app ./tests/unit ./tests/integration ./tests/component
73+
# pylint ./app.py ./boot.py ./flambda_app
74+
./scripts/pylint.sh

0 commit comments

Comments
 (0)