forked from fkie-cad/Logprep
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 967 Bytes
/
testing.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
name: Testing
on:
workflow_call:
jobs:
rust:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Perform tests for rust modules
run: cargo test
python:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
test-type: ["unit", "acceptance"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install helm
uses: azure/setup-helm@v4.2.0
with:
version: "latest"
id: install
- name: Install dependencies
run: |
pip install --upgrade pip wheel
pip install .[dev]
- name: Perform ${{ matrix.test-type }} test
env:
PYTEST_ADDOPTS: "--color=yes"
run: |
pytest -vv tests/${{ matrix.test-type }}