Skip to content

WIP

WIP #476

Workflow file for this run

name: Test
on:
- push
- pull_request
jobs:
test-container:
strategy:
fail-fast: false
matrix:
image:
- python:2.7
install-python:
- false
include:
- image: ubuntu:20.04
install-python: true
runs-on: ubuntu-latest
container:
image: ${{ matrix.image }}
options: "--privileged"
env:
TEST_MODE: tests
REPROZIP_USAGE_STATS: "off"
REPROZIP_PARAMETERS: https://stats.reprozip.org/parameters/travis/
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 20
- name: Install Docker client
run: |
apt-get install -yy curl
curl -Lo /tmp/docker.tgz https://download.docker.com/linux/static/stable/x86_64/docker-23.0.6.tgz
tar -xf /tmp/docker.tgz -C /usr/local/bin --strip-components=1
rm /tmp/docker.tgz
- name: Install Python
if: matrix.install-python == true
run: |
apt-get install -yy python3 python3-pip
- name: Install dependencies
run: |
if [ -z "${XDG_CACHE_HOME-}" ]; then
mkdir -p ~/.cache/reprozip
else
mkdir -p "$XDG_CACHE_HOME/reprozip"
fi
apt-get update -qq
apt-get install -qq libc6-dev-i386 gcc-multilib libsqlite3-dev
cat > pip.constraints.txt <<'EOF'
pyelftools<0.30
EOF
pip install -c pip.constraints.txt ./reprozip ./reprounzip ./reprounzip-docker ./reprounzip-vagrant ./reprounzip-vistrails ./reprounzip-qt ./reprozip-jupyter
- name: Test
run: |
export LANG=C
export LC_ALL=C
export REPROZIP_TEST_PYTHON="$(which python) -Wd"
export PYTHONUNBUFFERED=1
python -Wd tests --run-docker