Merge branch 'elastic:DAC-feature' into DAC-feature #35
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Custom Unit Tests | |
on: | |
push: | |
branches: [ "DAC-feature", "7.*", "8.*" ] | |
pull_request: | |
branches: [ "*" ] | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
env: | |
CUSTOM_RULES_DIR: ${{ secrets.CUSTOM_RULES_DIR }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip cache purge | |
pip install .[dev] | |
- name: Python Lint | |
run: | | |
python -m flake8 tests detection_rules --ignore D203,N815 --max-line-length 120 | |
- name: Unit tests | |
run: | | |
python -m detection_rules test |