Commit 49ea5ae6 authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: no CI in Debian

Solution: run with Debian container on GH
parent 12fd6175
FROM debian:stable-slim as debian-python
RUN apt-get update
RUN apt-get install -y make gcc openssl libffi-dev curl zlib1g-dev libssl-dev
ARG PYTHON_VER
ENV LANG C.UTF-8
RUN mkdir buildout
WORKDIR /buildout
COPY Makefile Makefile.configure /buildout/
RUN make PYTHON_VER=${PYTHON_VER} download_python
RUN make PYTHON_VER=${PYTHON_VER} python
FROM debian-python
ARG PYTHON_VER
COPY doc /buildout/doc
COPY src /buildout/src
COPY zc.recipe.egg_ /buildout/zc.recipe.egg_
COPY setup.* dev.py *.rst *.txt buildout.cfg /buildout/
RUN make PYTHON_VER=${PYTHON_VER} build
name: Test in Debian container
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Build container with Python ${{ matrix.python-version }}
env:
PYTHON_VER: ${{matrix.python-version}}
run: |
docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} .
- name: Test
env:
PYTHON_VER: ${{matrix.python-version}}
run: |
docker run debian_buildout:python${PYTHON_VER} /buildout/bin/test -c -vvv
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment