Skip to content

Adding workflow for tests #4

Adding workflow for tests

Adding workflow for tests #4

Workflow file for this run

name: Tests
on:
pull_request:
push:
branches:
- main
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install compose
run: sudo apt install docker-compose
- name: Build Test Image
# Build the test image locally so all subsequent steps use the fresh code.
run: make build-test-image SOURCE_BRANCH=${{ github.head_ref || github.ref_name }}
- name: Run Unit and Integration Tests
# Runs pytest on tests/unit and tests/integration inside the container
run: make check-in-container SOURCE_BRANCH=${{ github.head_ref || github.ref_name }}
- name: Run Database Tests
# Spins up postgres/redis via docker-compose and runs tests_openshift/database
run: make check-db SOURCE_BRANCH=${{ github.head_ref || github.ref_name }}