Changes to CI tests #259
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit | |
name: test_docker | |
on: [push] | |
permissions: read-all | |
jobs: | |
test_fedora: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ['39', '40'] | |
container: | |
image: registry.fedoraproject.org/fedora:${{ matrix.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up container | |
run: | | |
dnf install -y dnf-plugins-core langpacks-en | |
- name: Install dependencies | |
run: | | |
dnf copr -y enable @gift/dev | |
dnf install -y @development-tools libfwps-python3 libfwsi-python3 libgzipf-python3 liblnk-python3 libolecf-python3 libregf-python3 python3 python3-build python3-devel python3-dfdatetime python3-dtfabric python3-lz4 python3-pyyaml python3-setuptools python3-snappy python3-wheel python3-zstd | |
- name: Run tests | |
env: | |
LANG: C.utf8 | |
run: | | |
python3 ./run_tests.py | |
- name: Run end-to-end tests | |
run: | | |
if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi | |
- name: Build source distribution (sdist) | |
run: | | |
python3 -m build --no-isolation --sdist | |
- name: Build binary distribution (wheel) | |
run: | | |
python3 -m build --no-isolation --wheel | |
test_ubuntu: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ['24.04'] | |
container: | |
image: ubuntu:${{ matrix.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up container | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
run: | | |
apt-get update -q | |
apt-get install -y libterm-readline-gnu-perl locales software-properties-common | |
locale-gen en_US.UTF-8 | |
ln -f -s /usr/share/zoneinfo/UTC /etc/localtime | |
- name: Install dependencies | |
run: | | |
add-apt-repository -y ppa:gift/dev | |
apt-get update -q | |
apt-get install -y build-essential libfwps-python3 libfwsi-python3 libgzipf-python3 liblnk-python3 libolecf-python3 libregf-python3 python3 python3-build python3-dev python3-dfdatetime python3-dtfabric python3-lz4 python3-pip python3-setuptools python3-snappy python3-wheel python3-yaml python3-zstd | |
- name: Run tests | |
env: | |
LANG: en_US.UTF-8 | |
run: | | |
python3 ./run_tests.py | |
- name: Run end-to-end tests | |
env: | |
LANG: en_US.UTF-8 | |
run: | | |
if test -f tests/end-to-end.py; then PYTHONPATH=. python3 ./tests/end-to-end.py --debug -c config/end-to-end.ini; fi | |
- name: Build source distribution (sdist) | |
run: | | |
python3 -m build --no-isolation --sdist | |
- name: Build binary distribution (wheel) | |
run: | | |
python3 -m build --no-isolation --wheel |