Skip to content

Merge pull request #21 from actinia-org/import-error-fix #70

Merge pull request #21 from actinia-org/import-error-fix

Merge pull request #21 from actinia-org/import-error-fix #70

Workflow file for this run

name: actinia tests
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start containers
run: docker-compose -f "docker/docker-compose-test.yml" up -d --build
- name: List running docker
run: docker ps
- name: Docker logs actinia
run: docker logs docker_actinia-test_1
- name: Docker logs postgis
run: docker logs docker_postgis-test_1
- name: Run integration test
run: docker exec -t docker_actinia-test_1 sh /usr/bin/run_integration_tests.sh
- name: Stop containers
run: docker-compose -f "docker/docker-compose-test.yml" down
unittests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
# with:
# path: "."
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Replace run only unittest command
run: |
sed -i "s+# RUN make test+RUN make unittest+g" docker/actinia-parallel-plugin-test/Dockerfile
- name: Unittests of actinia-parallel-plugin
id: docker_build
uses: docker/build-push-action@v5
with:
push: false
tags: actinia-parallel-plugin-tests:alpine
context: .
file: docker/actinia-parallel-plugin-test/Dockerfile
no-cache: true
# pull: true