-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (34 loc) · 866 Bytes
/
Copy pathci.yml
File metadata and controls
34 lines (34 loc) · 866 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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
qa:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: {python-version: '3.11'}
- run: python -m pip install -U pip && pip install ruff black mypy pandas openpyxl
- run: ruff check .
- run: black --check .
- run: mypy src
build-artifacts:
needs: qa
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with: {python-version: '3.11'}
- run: pip install pandas openpyxl
- run: python tools/csv2xlsx.py
- uses: actions/upload-artifact@v4
with:
name: risk-matrix-xlsx
path: docs/reports/risk_matrix.xlsx
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: bash tools/sec_checks.sh