From 62fc7d7f7db49b583f46f6dac780d109845ecde7 Mon Sep 17 00:00:00 2001 From: Elisabetta Iavarone <18575092+elisabettai@users.noreply.github.com> Date: Mon, 15 Apr 2024 10:03:20 +0200 Subject: [PATCH] Updated CI --- .github/workflows/github-ci.yml | 48 +++++++++++++++++++++------------ 1 file changed, 31 insertions(+), 17 deletions(-) diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 19f7d6b..ec99b16 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -1,23 +1,37 @@ -name: Build and check image +name: Nake cookies and build images -on: push +env: + DOCKER_BUILDX: "0.3.1" + +on: ["push", "pull_request"] jobs: - verify-image-build: - runs-on: ubuntu-latest + cookie-cutter-osparc: + name: testing cookie-cutter-osparc + runs-on: ${{ matrix.os }} + strategy: + matrix: + python: [3.10] + os: [ubuntu-20.04] + docker_buildx: [v0.8.2] + fail-fast: false steps: - - name: Checkout repo content - uses: actions/checkout@v2 - - name: ooil version - uses: docker://itisfoundation/ci-service-integration-library:v1.0.4 - with: - args: ooil --version - - name: Assemble docker compose spec - uses: docker://itisfoundation/ci-service-integration-library:v1.0.4 + - uses: actions/checkout@v3 + - name: setup docker buildx + id: buildx + uses: docker/setup-buildx-action@v2 with: - args: ooil compose - - name: Build all images if multiple - uses: docker://itisfoundation/ci-service-integration-library:v1.0.4 + version: ${{ matrix.docker_buildx }} + driver: docker-container + - name: setup python environment + uses: actions/setup-python@v4 with: - args: docker compose build - + python-version: ${{ matrix.python }} + cache: "pip" + cache-dependency-path: "**/requirements*.txt" + - name: set dev environs + run: make devenv + - name: test cookiecutter + run: | + source .venv/bin/activate + make tests \ No newline at end of file