4040 install-test-deps : " false"
4141
4242 - name : Setup Nix
43- uses : cachix/install-nix-action@v30
43+ uses : cachix/install-nix-action@v31
4444 with :
4545 install_url : https://releases.nixos.org/nix/nix-2.18.8/install
4646
@@ -60,13 +60,28 @@ jobs:
6060 - name : Check - pyright
6161 run : uv run pyright .
6262
63+ check_documentation :
64+ name : Check - Documentation
65+ runs-on : ubuntu-latest
66+ steps :
67+ - name : Checkout source code
68+ uses : actions/checkout@v4
69+
70+ - name : Setup 3rd party dependencies
71+ uses : ./.github/actions/setup-dependencies
72+
73+ - name : Check - Documentation
74+ run : |
75+ uv run unblob --build-handlers-doc docs/handlers.md
76+ git diff --exit-code docs/handlers.md
77+
6378 run_python_tests :
6479 name : Run tests (Python)
6580 needs : [check_pre_commit, check_pyright]
6681 runs-on : ubuntu-latest
6782 strategy :
6883 matrix :
69- python-version : ["3.9", "3. 10", "3.11", "3.12", "3.13"]
84+ python-version : ["3.10", "3.11", "3.12", "3.13"]
7085 steps :
7186 - name : Checkout source code
7287 uses : actions/checkout@v4
@@ -123,7 +138,6 @@ jobs:
123138 name : Build wheels (linux)
124139 if : github.event_name == 'push' || github.event_name == 'workflow_dispatch' || contains(github.event.*.labels.*.name, 'dependencies')
125140 needs : [check_pre_commit]
126- runs-on : ubuntu-latest
127141 strategy :
128142 fail-fast : false
129143 matrix :
@@ -137,6 +151,7 @@ jobs:
137151 # lief is not available for this platform (and no sdist is provided)
138152 # - manylinux: musllinux_1_1
139153 # target: aarch64
154+ runs-on : ${{ matrix.platform.target == 'aarch64' && 'ubuntu-24.04-arm' || 'ubuntu-latest' }}
140155 steps :
141156 - name : Checkout source code
142157 uses : actions/checkout@v4
@@ -168,24 +183,17 @@ jobs:
168183 python3 -m venv wheel.venv
169184 source wheel.venv/bin/activate
170185 pip install dist/*.whl
171- unblob --help
186+ unblob --version
172187
173188 - name : Check wheel (cross-manylinux)
174189 if : matrix.platform.target != 'x86_64' && startsWith(matrix.platform.manylinux, 'manylinux')
175- uses : uraimo/run-on-arch-action@v2
176- with :
177- arch : ${{ matrix.platform.target }}
178- distro : ubuntu22.04
179- githubToken : ${{ github.token }}
180- install : |
181- apt-get update
182- apt-get install -y --no-install-recommends python3-venv libmagic1
183- run : |
184- set -e
185- python3 -m venv wheel.venv
186- source wheel.venv/bin/activate
187- pip install dist/*.whl
188- unblob --version
190+ shell : bash
191+ run : |
192+ set -e
193+ python3 -m venv wheel.venv
194+ source wheel.venv/bin/activate
195+ pip install dist/*.whl
196+ unblob --version
189197
190198 - name : Check wheel (x86-musllinux)
191199 if : matrix.platform.target == 'x86_64' && startsWith(matrix.platform.manylinux, 'musllinux')
@@ -203,15 +211,13 @@ jobs:
203211
204212 - name : Check wheel (cross-musllinux)
205213 if : matrix.platform.target != 'x86_64' && startsWith(matrix.platform.manylinux, 'musllinux')
206- uses : uraimo/ run-on-arch- action@v2
214+ uses : addnab/docker- run-action@v3
207215 with :
208- arch : ${{ matrix.platform.target }}
209- distro : alpine_latest
210- githubToken : ${{ github.token }}
211- install : |
212- apk add py3-pip libmagic gcc lz4 musl-dev python3-dev
216+ image : alpine:latest
217+ options : -v ${{ github.workspace }}:/io -w /io
213218 run : |
214219 set -e
220+ apk add py3-pip libmagic gcc lz4 musl-dev python3-dev
215221 python3 -m venv wheel.venv
216222 source wheel.venv/bin/activate
217223 pip install dist/*.whl
0 commit comments