-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ffa2be7
commit 03d0c55
Showing
25 changed files
with
1,927 additions
and
13 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
# Run tests on Fedora and Ubuntu Docker images using GIFT CORP and GIFT PPA on commit | ||
name: test_docker | ||
on: [push] | ||
jobs: | ||
test_fedora: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['34', '35'] | ||
container: | ||
image: registry.fedoraproject.org/fedora:${{ matrix.version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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 python3 python3-devel libbde-python3 libcreg-python3 libevt-python3 libevtx-python3 libewf-python3 libexe-python3 libfsapfs-python3 libfsext-python3 libfshfs-python3 libfsntfs-python3 libfsxfs-python3 libfvde-python3 libfwevt-python3 libfwnt-python3 libluksde-python3 libmodi-python3 libqcow-python3 libregf-python3 libsigscan-python3 libsmdev-python3 libsmraw-python3 libvhdi-python3 libvmdk-python3 libvsgpt-python3 libvshadow-python3 libvslvm-python3 libwrc-python3 python3-cffi python3-cryptography python3-dfdatetime python3-dfimagetools python3-dfvfs python3-dfwinreg python3-dtfabric python3-idna python3-pytsk3 python3-pyxattr python3-pyyaml python3-setuptools | ||
- 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 | ||
run: | | ||
python3 ./setup.py sdist | ||
- name: Build binary distribution | ||
run: | | ||
python3 ./setup.py bdist | ||
- name: Run build and install test | ||
run: | | ||
python3 ./setup.py build | ||
python3 ./setup.py install | ||
test_ubuntu: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
version: ['18.04', '20.04'] | ||
container: | ||
image: ubuntu:${{ matrix.version }} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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 python3 python3-dev libbde-python3 libcreg-python3 libevt-python3 libevtx-python3 libewf-python3 libexe-python3 libfsapfs-python3 libfsext-python3 libfshfs-python3 libfsntfs-python3 libfsxfs-python3 libfvde-python3 libfwevt-python3 libfwnt-python3 libluksde-python3 libmodi-python3 libqcow-python3 libregf-python3 libsigscan-python3 libsmdev-python3 libsmraw-python3 libvhdi-python3 libvmdk-python3 libvsgpt-python3 libvshadow-python3 libvslvm-python3 libwrc-python3 python3-cffi-backend python3-cryptography python3-dfdatetime python3-dfimagetools python3-dfvfs python3-dfwinreg python3-distutils python3-dtfabric python3-idna python3-pytsk3 python3-pyxattr python3-setuptools python3-yaml | ||
- 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 | ||
run: | | ||
python3 ./setup.py sdist | ||
- name: Build binary distribution | ||
run: | | ||
python3 ./setup.py bdist | ||
- name: Run build and install test | ||
run: | | ||
python3 ./setup.py build | ||
python3 ./setup.py install |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Run tox tests on Ubuntu Docker images using GIFT PPA | ||
name: test_tox | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
include: | ||
- python-version: '3.6' | ||
toxenv: 'py36' | ||
- python-version: '3.7' | ||
toxenv: 'py37' | ||
- python-version: '3.8' | ||
toxenv: 'py38,coverage,codecov' | ||
- python-version: '3.9' | ||
toxenv: 'py39' | ||
- python-version: '3.10' | ||
toxenv: 'py310' | ||
- python-version: '3.8' | ||
toxenv: 'pylint' | ||
- python-version: '3.8' | ||
toxenv: 'docs' | ||
container: | ||
image: ubuntu:20.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- 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 | ||
env: | ||
DEBIAN_FRONTEND: noninteractive | ||
run: | | ||
add-apt-repository -y universe | ||
add-apt-repository -y ppa:deadsnakes/ppa | ||
add-apt-repository -y ppa:gift/dev | ||
apt-get update -q | ||
apt-get install -y build-essential git libffi-dev python${{ matrix.python-version }} python${{ matrix.python-version }}-dev python${{ matrix.python-version }}-venv libbde-python3 libcreg-python3 libevt-python3 libevtx-python3 libewf-python3 libexe-python3 libfsapfs-python3 libfsext-python3 libfshfs-python3 libfsntfs-python3 libfsxfs-python3 libfvde-python3 libfwevt-python3 libfwnt-python3 libluksde-python3 libmodi-python3 libqcow-python3 libregf-python3 libsigscan-python3 libsmdev-python3 libsmraw-python3 libvhdi-python3 libvmdk-python3 libvsgpt-python3 libvshadow-python3 libvslvm-python3 libwrc-python3 python3-cffi-backend python3-cryptography python3-dfdatetime python3-dfimagetools python3-dfvfs python3-dfwinreg python3-distutils python3-dtfabric python3-idna python3-pip python3-pytsk3 python3-pyxattr python3-setuptools python3-yaml | ||
- name: Install tox | ||
run: | | ||
python3 -m pip install tox | ||
- name: Run tests | ||
env: | ||
LANG: en_US.UTF-8 | ||
run: | | ||
tox -e${{ matrix.toxenv }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,26 @@ | ||
# Files to ignore by git | ||
# Files to ignore by git. | ||
|
||
# Back-up files | ||
*~ | ||
*.swp | ||
|
||
# Generic auto-generated build files | ||
*.pyc | ||
*.pyo | ||
|
||
# Specific auto-generated build files | ||
/.tox | ||
/__pycache__ | ||
/artifactsrc.egg-info | ||
/build | ||
/dist | ||
|
||
# Tests files | ||
.tox | ||
# Code review files | ||
/.review | ||
|
||
# Type check files | ||
/.mypy_cache | ||
|
||
# Test coverage files | ||
.coverage | ||
tests-coverage.txt |
Oops, something went wrong.