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

Commit 369f888

Browse files
atualizacao de scripts
1 parent 9d127ad commit 369f888

File tree

3 files changed

+45
-2
lines changed

3 files changed

+45
-2
lines changed

.github/workflows/pylint.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
build:
20+
runs-on: ubuntu-latest
21+
strategy:
22+
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
26+
steps:
27+
- uses: actions/checkout@v2
28+
- name: Set up Python
29+
uses: actions/setup-python@v2
30+
with:
31+
python-version: ${{ matrix.python-version }}
32+
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 app.py lambda_app tests

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
architecture: x64
3333
cache: 'pip'
3434
- name: Install dependencies
35-
- run: pip install -r requirements.txt
35+
- run: |
36+
python -m pip install --upgrade pip
37+
pip install pylint
3638
- name: Analysing the code with pylint
3739
- run: pylint app.py lambda_app tests

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ jobs:
3232
architecture: x64
3333
cache: 'pip'
3434
- name: Install dependencies
35-
- run: pip install -r requirements.txt
35+
- run: |
36+
python -m pip install --upgrade pip
37+
pip install pylint
3638
- name: Analysing the code with pylint
3739
- run: pylint app.py lambda_app tests

0 commit comments

Comments
 (0)