-
-
Notifications
You must be signed in to change notification settings - Fork 37
49 lines (38 loc) · 1.05 KB
/
tests.yml
File metadata and controls
49 lines (38 loc) · 1.05 KB
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
name: Tests 🎳
on: [workflow_call]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Setup Python
uses: actions/setup-python@v6
with:
python-version: "3.12"
architecture: x64
cache: "pip"
cache-dependency-path: "requirements/dev.txt"
- name: Install Python requirements
run: pip install --quiet -r requirements/lint.txt
- name: Run linter
run: ruff check --preview --output-format=concise lizmap
- name: Run security check
run: bandit -r lizmap -ll
- name: Run Detect Secrets
run: detect-secrets scan lizmap --all-files
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qgis_version: [
"3.34",
"3.40",
"3.44",
]
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Running tests
run: make docker-test QGIS_VERSION=${{ matrix.qgis_version }}