Skip to content

Commit 9d6c7fc

Browse files
authored
Merge pull request #58 from SigmaHQ:pysigma-1.0
Update to pySigma 1.0
2 parents 1e6b5d7 + f81328b commit 9d6c7fc

File tree

5 files changed

+708
-491
lines changed

5 files changed

+708
-491
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ on:
88

99
jobs:
1010
build-and-publish:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-latest
1212
environment: release
1313
permissions:
1414
id-token: write
1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v6
1717
- name: Install Poetry
1818
run: pipx install poetry
1919
- name: Set up Python
20-
uses: actions/setup-python@v2
20+
uses: actions/setup-python@v6.1.0
2121
with:
2222
python-version: '3.13'
2323
- name: Verify versioning
@@ -31,9 +31,9 @@ jobs:
3131
run: poetry build
3232
- name: Publish to test PyPI
3333
if: ${{ github.event_name == 'push' }}
34-
uses: pypa/gh-action-pypi-publish@release/v1
34+
uses: pypa/gh-action-pypi-publish@v1.13.0
3535
with:
3636
repository-url: https://test.pypi.org/legacy/
3737
- name: Publish to PyPI
3838
if: ${{ github.event_name == 'release' }}
39-
uses: pypa/gh-action-pypi-publish@release/v1
39+
uses: pypa/gh-action-pypi-publish@v1.13.0

.github/workflows/test.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,26 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
os: [ 'ubuntu-22.04' ]
14-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
13+
os: [ 'ubuntu-latest' ]
14+
python-version: [ '3.10', '3.11', '3.12', '3.13' ]
1515
runs-on: ${{ matrix.os }}
1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: actions/checkout@v6
1818
- name: Install Poetry
1919
run: pipx install poetry
2020
- name: Set up Python
21-
uses: actions/setup-python@v5
21+
uses: actions/setup-python@v6.1.0
2222
with:
2323
python-version: ${{ matrix.python-version }}
2424
- name: Install dependencies
2525
run: poetry install
2626
- name: Run tests
2727
run: poetry run pytest --cov=sigma --cov-report term --cov-report xml:cov.xml -vv
2828
- name: Store coverage for badge
29-
if: ${{ runner.os == 'Linux' }}
29+
if: ${{ runner.os == 'Linux' && matrix.python-version == '3.13' }}
3030
run: poetry run python print-coverage.py >> $GITHUB_ENV
3131
- name: Create coverage badge
32-
if: ${{ github.repository == 'SigmaHQ/pySigma-backend-splunk' && github.event_name == 'push' && runner.os == 'Linux' }}
32+
if: ${{ github.repository == 'SigmaHQ/pySigma-backend-splunk' && github.event_name == 'push' && runner.os == 'Linux' && matrix.python-version == '3.13' }}
3333
uses: schneegans/dynamic-badges-action@v1.7.0
3434
with:
3535
auth: ${{ secrets.GIST_SECRET }}

0 commit comments

Comments
 (0)