Skip to content

Bump pytest from 8.3.3 to 8.3.4 #73

Bump pytest from 8.3.3 to 8.3.4

Bump pytest from 8.3.3 to 8.3.4 #73

Workflow file for this run

name: Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
strategy:
matrix:
os: [ 'ubuntu-20.04' ]
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
runs-on: ${{ matrix.os }}
steps:
- uses: ankane/setup-opensearch@v1
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: pipx install poetry
- 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-opensearch' && github.event_name == 'push' && github.ref == 'main' && runner.os == 'Linux' }}
uses: schneegans/[email protected]
with:
auth: ${{ secrets.GIST_SECRET }}
gistID: e95ff0904786bd5883f19105b6a3a1ee
filename: SigmaHQ-pySigma-backend-opensearch.json
label: Coverage
message: ${{ env.COVERAGE }}
color: ${{ env.COVERAGE_COLOR }}