Debian Codegraph @

.github/workflows/test_docker.yml

raw
1 # Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit
2 name: test_docker
3 on: [push]
4 permissions: read-all
5 jobs:
6 test_fedora:
7 runs-on: ubuntu-latest
8 strategy:
9 matrix:
10 version: ['41', '42']
11 container:
12 image: registry.fedoraproject.org/fedora:${{ matrix.version }}
13 steps:
14 - uses: actions/checkout@v4
15 - name: Set up container
16 run: |
17 dnf install -y dnf-plugins-core langpacks-en
18 - name: Install dependencies
19 run: |
20 dnf copr -y enable @gift/dev
21 dnf install -y @development-tools libbde-python3 libcaes-python3 libewf-python3 libfcrypto-python3 libfsapfs-python3 libfsext-python3 libfsfat-python3 libfshfs-python3 libfsntfs-python3 libfsxfs-python3 libfvde-python3 libfwnt-python3 libluksde-python3 libmodi-python3 libphdi-python3 libqcow-python3 libsigscan-python3 libsmdev-python3 libsmraw-python3 libvhdi-python3 libvmdk-python3 libvsapm-python3 libvsgpt-python3 libvshadow-python3 libvslvm-python3 python3 python3-build python3-devel python3-dfdatetime python3-dtfabric python3-idna python3-pytsk3 python3-pyyaml python3-setuptools python3-wheel python3-xattr
22 - name: Run tests
23 env:
24 LANG: C.utf8
25 run: |
26 python3 ./run_tests.py
27 - name: Run end-to-end tests
28 run: |
29 if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi
30 - name: Build source distribution (sdist)
31 run: |
32 python3 -m build --no-isolation --sdist
33 - name: Build binary distribution (wheel)
34 run: |
35 python3 -m build --no-isolation --wheel
36 test_ubuntu:
37 runs-on: ubuntu-latest
38 strategy:
39 matrix:
40 version: ['24.04']
41 container:
42 image: ubuntu:${{ matrix.version }}
43 steps:
44 - uses: actions/checkout@v4
45 - name: Set up container
46 env:
47 DEBIAN_FRONTEND: noninteractive
48 run: |
49 apt-get update -q
50 apt-get install -y libterm-readline-gnu-perl locales software-properties-common
51 locale-gen en_US.UTF-8
52 ln -f -s /usr/share/zoneinfo/UTC /etc/localtime
53 - name: Install dependencies
54 run: |
55 add-apt-repository -y ppa:gift/dev
56 apt-get update -q
57 apt-get install -y build-essential libbde-python3 libcaes-python3 libewf-python3 libfcrypto-python3 libfsapfs-python3 libfsext-python3 libfsfat-python3 libfshfs-python3 libfsntfs-python3 libfsxfs-python3 libfvde-python3 libfwnt-python3 libluksde-python3 libmodi-python3 libphdi-python3 libqcow-python3 libsigscan-python3 libsmdev-python3 libsmraw-python3 libvhdi-python3 libvmdk-python3 libvsapm-python3 libvsgpt-python3 libvshadow-python3 libvslvm-python3 python3 python3-build python3-dev python3-dfdatetime python3-dtfabric python3-idna python3-pip python3-pytsk3 python3-setuptools python3-venv python3-wheel python3-xattr python3-yaml
58 - name: Run tests
59 env:
60 LANG: en_US.UTF-8
61 run: |
62 python3 ./run_tests.py
63 - name: Run end-to-end tests
64 env:
65 LANG: en_US.UTF-8
66 run: |
67 if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi
68 - name: Build source distribution (sdist)
69 run: |
70 python3 -m build --no-isolation --sdist
71 - name: Build binary distribution (wheel)
72 run: |
73 python3 -m build --no-isolation --wheel