Skip to content

Commit 5300ea8

Browse files
committed
test with fuse 2 and 3
1 parent 5e0f7fb commit 5300ea8

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,19 @@ jobs:
127127
run: |
128128
python3 -c 'import mfusepy'
129129
130-
- name: Unit Tests
130+
- name: Unit Tests (FUSE 2)
131131
if: startsWith( matrix.os, 'ubuntu' )
132132
run: |
133+
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 2'
134+
python3 -m pytest tests
135+
136+
- name: Unit Tests (FUSE 3)
137+
if: startsWith( matrix.os, 'ubuntu' )
138+
run: |
139+
if [[ $LIBFUSE_VERSION == system ]]; then
140+
export FUSE_LIBRARY_PATH=$( dpkg -L libfuse3-3 | 'grep' -F .so | head -1 )
141+
else
142+
export FUSE_LIBRARY_PATH=/usr/local/lib/x86_64-linux-gnu/libfuse3.so.$LIBFUSE_VERSION
143+
fi
144+
python3 -c 'import mfusepy; assert mfusepy.fuse_version_major == 3'
133145
python3 -m pytest tests

0 commit comments

Comments
 (0)