-
Notifications
You must be signed in to change notification settings - Fork 7
56 lines (48 loc) · 1.3 KB
/
quality.yml
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
name: Code Quality
on:
schedule: # weekly
- cron: '0 0 * * 0'
push:
pull_request:
workflow_dispatch:
jobs:
quality-scanning:
name: "${{ matrix.DEPLOYMENT_NAME }} -- Code Quality"
runs-on: ubuntu-22.04
strategy:
max-parallel: 5
fail-fast: false
matrix:
DEPLOYMENT_NAME: [ jwebbinar, roman, tike]
USE_FROZEN: [ 0 ]
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Set Up Environment
shell: bash
run: |
scripts/image-configure ${{ matrix.DEPLOYMENT_NAME }} --use-frozen ${{ matrix.USE_FROZEN }}
pip install -r requirements.txt
df -h
- name: YAML Parsing
shell: bash
continue-on-error: false
run: |
source setup-env
scripts/sscan-yaml `find deployments .github scripts -name '*.yaml' -o -name '*.yml'`
- name: Flake8 Scan
shell: bash
continue-on-error: false
run: |
source setup-env
scripts/sscan-flake8
- name: Ruff Scan
shell: bash
continue-on-error: false
run: |
source setup-env
scripts/sscan-ruff