-
Notifications
You must be signed in to change notification settings - Fork 8
36 lines (29 loc) · 979 Bytes
/
test.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
---
name: Regression Tests
on: [push, pull_request]
jobs:
regression:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
crsversion: ['3.3.5', '3.2.1']
poetry-version: ['1.7.0']
python-version: ['3.8', '3.9', '3.10']
steps:
- name: "Checkout repo"
uses: actions/checkout@v4
- name: Set up Python 3
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install poetry
uses: abatilo/actions-poetry@v3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: "Run tests"
run: |
curl -L https://github.com/coreruleset/coreruleset/archive/refs/tags/v${{ matrix.crsversion }}.tar.gz -o - | tar xzvf - --strip-components=1 --wildcards "*/rules/*"
poetry install -v
poetry run pytest -vs
poetry run secrules-parser -c --output-type github -f rules/*.conf