This repository was archived by the owner on May 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
72 lines (69 loc) · 2.79 KB
/
lambda_api_pylint.yml
File metadata and controls
72 lines (69 loc) · 2.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# Summary:
# Execute the pylint analysis on code
# Read here for mode info: https://pylint.pycqa.org/en/latest/ and https://www.python.org/dev/peps/pep-0008/
name: Execute the pylint analysis
#on:
# # 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:
# # - "push": Triggers each time a commit is pushed
# # - "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:
# # - 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
# # - 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
# push: # Triggers on each pushed commit
# branches:
# - 'master'
on: [ push ]
jobs:
setup-environment:
name: Lambda API - Setup deployment environment (Ubuntu 18.04 - Python 3.x)
runs-on: ubuntu-18.04
strategy:
matrix:
# python-version: [ "3.8", "3.9" ]
python-version: [ "3.8" ]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
setup-project:
name: Lambda API - Setup project (Ubuntu 18.04 - Python 3.x)
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [ "3.8" ]
needs: setup-environment
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Set up requirements ${{ matrix.python-version }}
run: |
python -m pip install --upgrade pip
python -m pip install -r ./examples/lambda_api/requirements.txt -t .
python -m pip install -r ./examples/lambda_api/requirements-vendor.txt -t .
pylint:
name: Lambda API - Setup pylint (Ubuntu 18.04)
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [ "3.8" ]
needs: setup-project
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install pylint
run: |
pip install pylint
- name: Execute pylint
run: |
cd ./examples/lambda_api
./scripts/pylint.sh