Skip to content

Commit

Permalink
Updated CI
Browse files Browse the repository at this point in the history
  • Loading branch information
elisabettai committed Apr 15, 2024
1 parent eeab0bd commit 62fc7d7
Showing 1 changed file with 31 additions and 17 deletions.
48 changes: 31 additions & 17 deletions .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 62fc7d7

Please sign in to comment.