Remove config.py in favor of diskcache-based JSON loading #278
Workflow file for this run
This file contains hidden or 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: ["*"] | |
| pull_request: | |
| branches: ["*"] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| os: ["ubuntu-latest", "windows-latest", "macos-latest", "ubuntu-24.04-arm"] | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Install Poetry | |
| run: pipx install poetry | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: poetry | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Install ruff | |
| run: pip install "ruff>=0.12,<1" | |
| - name: Lint with ruff | |
| run: ruff format --check . | |
| - 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-validators-sigmaHQ' && github.event_name == 'push' && runner.os == 'Linux' }} | |
| uses: schneegans/dynamic-badges-action@v1.7.0 | |
| with: | |
| auth: ${{ secrets.GIST_SECRET }} | |
| gistID: b27ee1cbe964fb1a299cc20c3403f8c8 | |
| filename: pySigma-validators-sigmaHQ.json | |
| label: Coverage | |
| message: ${{ env.COVERAGE }} | |
| color: ${{ env.COVERAGE_COLOR }} |