Skip to content

Commit 8b89815

Browse files
committed
python test
Signed-off-by: David Sterba <dsterba@suse.com>
1 parent 21ddbaa commit 8b89815

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

‎.github/workflows/test-python.yml‎

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Testing workflow for CI developments, reacts to push of branch 'devel-ci'
2+
name: Testing CI build (python)
3+
run-name: Testing CI (python)
4+
on:
5+
push:
6+
branches:
7+
- devel-ci
8+
jobs:
9+
python-test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
# 3.6 not available since 22.04
15+
# 3.12 broken on 24.04 (no setuptools during build but installed, FIXME)
16+
# 3.13 not available on 24.04
17+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- run: sudo apt-get update -qqq
21+
- run: sudo apt-get install -y pkg-config gcc liblzo2-dev libzstd-dev libblkid-dev uuid-dev zlib1g-dev libext2fs-dev e2fsprogs libudev-dev python3-sphinx libaio-dev liburing-dev python3-setuptools
22+
- name: Set up python
23+
uses: actions/setup-python@v6
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
- run: python -c "import sys; print(sys.version)"
27+
- name: Configure
28+
run: ./autogen.sh && ./configure --disable-documentation --disable-programs --disable-static
29+
- name: Make
30+
run: make V=1 -j 4 all mkfs.btrfs
31+
- name: Test python
32+
run: sudo make test-libbtrfsutil

0 commit comments

Comments
 (0)