Skip to content

Tests pipeline

Tests pipeline #13

Workflow file for this run

name: CI
on:
pull_request:
branches: [develop] # If more branches are needed, add them here.
types: [synchronize, opened, reopened, ready_for_review]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache Docker layers
uses: actions/cache@v3
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
- name: Build the Docker image
run: |
docker buildx create --use
docker buildx build \
--tag unicef/hope_country_workspace:${{ github.sha }} \
--load \
--target python_dev_deps \
-f ./docker/Dockerfile \
./
- name: Run the tests
run: |
image=unicef/hope_country_workspace:${{ github.sha }} docker compose -f ./.github/docker/compose.ci.yml up --exit-code-from tests