-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (26 loc) · 838 Bytes
/
python.yml
File metadata and controls
29 lines (26 loc) · 838 Bytes
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
name: python
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest # OS to run the tests on
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.8
uses: actions/setup-python@v4.2.0
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint pytest
if [ -f requirements/test-requirements.txt ]; then pip install -r requirements/test-requirements.txt; fi
- name: Lint with pylint
run: |
# lint with the rules defined in pylintrc
pylint --ignore-patterns=lint_test src