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

Commit 3372465

Browse files
change the flow
1 parent dd7a6f4 commit 3372465

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/pylint.yml

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

1818
jobs:
19-
build:
19+
setup-environment:
20+
name: Setup deployment environment (Ubuntu 18.04 - Node 12.x)
21+
runs-on: ubuntu-18.04
22+
# runs-on: ubuntu-latest
23+
strategy:
24+
matrix:
25+
python-version: [ "3.8", "3.9", "3.10" ]
26+
steps:
27+
- name: Set up Python ${{ matrix.python-version }}
28+
uses: actions/setup-python@v2
29+
with:
30+
python-version: ${{ matrix.python-version }}
31+
architecture: x64
32+
cache: 'pip'
33+
lint:
2034
runs-on: ubuntu-latest
21-
strategy:
22-
matrix:
23-
python-version: [ "3.8", "3.9", "3.10" ]
35+
needs: setup-environment
2436
steps:
2537
- uses: actions/checkout@v2
26-
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2
28-
with:
29-
python-version: ${{ matrix.python-version }}
30-
architecture: x64
31-
cache: 'pip'
3238
- name: Install dependencies
3339
run: |
3440
python -m pip install --upgrade pip
3541
pip install pylint
36-
- name: Analysing the code with pylint
37-
- run: |
3842
pylint ./examples/*/app.py ./examples/*/*

0 commit comments

Comments
 (0)