2021-11-13 16:50:49 +01:00
|
|
|
name: CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
- push
|
|
|
|
- pull_request
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version:
|
|
|
|
- "3.7"
|
|
|
|
- "3.8"
|
|
|
|
- "3.9"
|
2021-12-02 08:17:39 +01:00
|
|
|
- "3.10"
|
2021-11-13 16:50:49 +01:00
|
|
|
|
|
|
|
name: Python ${{ matrix.python-version }}
|
|
|
|
runs-on: ubuntu-20.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
pip install -r requirements.txt
|
|
|
|
pip install bandit flake8 pylint
|
|
|
|
|
|
|
|
- name: Lint with flake8
|
|
|
|
run: make flake8
|
|
|
|
|
|
|
|
# - name: Lint with pylint
|
|
|
|
# run: make pylint
|
|
|
|
|
|
|
|
- name: Lint with bandit
|
|
|
|
run: make bandit
|