Skip to content

Commit 9b64875

Browse files
committed
Adding workflow for tests
Signed-off-by: Jiri Podivin <[email protected]>
1 parent 2054d62 commit 9b64875

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/tests.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Build Test Image
16+
# Build the test image locally so all subsequent steps use the fresh code.
17+
run: make build-test-image
18+
19+
- name: Run Unit and Integration Tests
20+
# Runs pytest on tests/unit and tests/integration inside the container
21+
run: make check-in-container
22+
23+
- name: Run Database Tests
24+
# Spins up postgres/redis via docker-compose and runs tests_openshift/database
25+
run: make check-db

0 commit comments

Comments
 (0)