Skip to content

Commit dfe86d4

Browse files
committed
Add fuzzing to workflow
1 parent 2aa829b commit dfe86d4

1 file changed

Lines changed: 30 additions & 2 deletions

File tree

.github/workflows/build.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,34 @@ jobs:
8282
- name: Run test
8383
shell: bash
8484
run: make test
85+
fuzz:
86+
name: Fuzz
87+
runs-on: ${{ matrix.os }}
88+
needs: [test-image]
89+
strategy:
90+
fail-fast: false
91+
matrix:
92+
os:
93+
- ubuntu-latest
94+
- windows-latest
95+
- macos-latest
96+
python:
97+
- "3.10"
98+
- "3.11"
99+
- "3.12"
100+
- "3.13"
101+
#- "3.14" # not supported by atheris yet
102+
steps:
103+
- name: Checkout the Git repository
104+
uses: actions/checkout@v4
105+
- name: Setup Python
106+
uses: actions/setup-python@v5
107+
with:
108+
python-version: ${{ matrix.python }}
109+
cache: "pip"
110+
- name: Run test
111+
shell: bash
112+
run: make fuzz
85113
build:
86114
name: Build pip package
87115
runs-on: ubuntu-latest
@@ -106,7 +134,7 @@ jobs:
106134
publish:
107135
name: Publish to PyPi
108136
if: github.repository == 'Eeems/python-ext4' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
109-
needs: [build]
137+
needs: [build, fuzz]
110138
runs-on: ubuntu-latest
111139
permissions:
112140
id-token: write
@@ -128,7 +156,7 @@ jobs:
128156
release:
129157
name: Add pip to release
130158
if: github.repository == 'Eeems/python-ext4' && github.event_name == 'release' && startsWith(github.ref, 'refs/tags')
131-
needs: [build]
159+
needs: [build, fuzz]
132160
runs-on: ubuntu-latest
133161
permissions:
134162
contents: write

0 commit comments

Comments
 (0)