Commit d1bdb0e8 authored by Godefroid Chapelle's avatar Godefroid Chapelle

Problem: GH actions do not use ci_build.sh

Solution: Make it DRY by using ci_build.sh
parent 6b3c226a
...@@ -13,13 +13,9 @@ jobs: ...@@ -13,13 +13,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build container with Python ${{ matrix.python-version }} - name: Test in container with Python ${{ matrix.python-version }}
env: env:
PYTHON_VER: ${{matrix.python-version}} PYTHON_VER: ${{matrix.python-version}}
BUILD_TYPE: centos_containers
run: | run: |
docker build -f .github/workflows/Dockerfile --tag centos_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} . ./ci_build.sh
- name: Test
env:
PYTHON_VER: ${{matrix.python-version}}
run: |
docker run centos_buildout:python${PYTHON_VER} /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /buildout/bin/test -c -vvv'
name: Debian container with system Python
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- name: Test in container with system Python
env:
BUILD_TYPE: debian_sys_container
run: |
./ci_build.sh
...@@ -13,13 +13,9 @@ jobs: ...@@ -13,13 +13,9 @@ jobs:
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Build container with Python ${{ matrix.python-version }} - name: Test in container with Python ${{ matrix.python-version }}
env: env:
PYTHON_VER: ${{matrix.python-version}} PYTHON_VER: ${{matrix.python-version}}
BUILD_TYPE: debian_containers
run: | run: |
docker build -f .github/workflows/Dockerfile-debian --tag debian_buildout:python${PYTHON_VER} --build-arg PYTHON_VER=${PYTHON_VER} . ./ci_build.sh
- name: Test
env:
PYTHON_VER: ${{matrix.python-version}}
run: |
docker run debian_buildout:python${PYTHON_VER} /bin/bash -c 'RUN_COVERAGE= COVERAGE_REPORT= /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