adding Oring regexes #80
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: Test | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ 'ubuntu-20.04' ] | |
python-version: [ '3.8', '3.9', '3.10' ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Poetry | |
run: pipx install poetry | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install dependencies | |
run: poetry install | |
- name: Run tests | |
run: poetry run pytest --cov=sigma --cov-report term --cov-report xml:cov.xml -vv | |
- name: Store coverage for badge | |
if: ${{ runner.os == 'Linux' }} | |
run: poetry run python print-coverage.py >> $GITHUB_ENV | |
- name: Create coverage badge | |
if: ${{ github.repository == 'SigmaHQ/pySigma-backend-splunk' && github.event_name == 'push' && runner.os == 'Linux' }} | |
uses: schneegans/[email protected] | |
with: | |
auth: ${{ secrets.GIST_SECRET }} | |
gistID: 47c292239759399a6e3c73b0e9656b33 | |
filename: SigmaHQ-pySigma-backend-splunk.json | |
label: Coverage | |
message: ${{ env.COVERAGE }} | |
color: ${{ env.COVERAGE_COLOR }} |