-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (32 loc) · 891 Bytes
/
Copy pathci.yml
File metadata and controls
38 lines (32 loc) · 891 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
30
31
32
33
34
35
36
37
38
name: Test Pipeline
on:
push:
branches:
- '*'
- '!main'
workflow_call:
jobs:
test_app:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up python env
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade pip setuptools
python -m pip install --quiet pylint
python -m pip install --quiet pytest
python -m pip install --quiet bandit
python -m pip install .
- name: Run Tests
run: |
pytest tests/test_app.py
- name: Lint check
run: pylint app/
- name: Security check
run: bandit -lll --configfile bandit.conf --recursive app/