Skip to content

Commit

Permalink
Add kai-service requirements files
Browse files Browse the repository at this point in the history
Signed-off-by: Jason Montleon <jmontleo@redhat.com>
  • Loading branch information
jmontleon committed Feb 2, 2024
1 parent 43bfa37 commit 53106d1
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .github/workflows/test-kai-service.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,16 @@ name: Test Kai Service
on:
pull_request:
paths:
- kai-service/Containerfile
- kai-service/**.py
- kai-service/requirements.txt
- kai-service/tests/requirements.txt
push:
paths:
- kai-service/Containerfile
- kai-service/**.py
- kai-service/requirements.txt
- kai-service/tests/requirements.txt
workflow_dispatch: {}

jobs:
Expand All @@ -27,3 +33,13 @@ jobs:

- name: Run test
run: pushd kai-service && make test && popd

- name: Build the Container
id: build-image
uses: redhat-actions/buildah-build@main
with:
image: kai-service
tags: latest
context: kai-service
containerfiles: |
./kai-service/Containerfile
2 changes: 1 addition & 1 deletion kai-service/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
deps:
pip install pytest pytest-aiohttp pyyaml
pip install -r tests/requirements.txt
test:
python3 -m pytest tests/kai_tests.py
2 changes: 2 additions & 0 deletions kai-service/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
aiohttp
pyyaml
3 changes: 3 additions & 0 deletions kai-service/tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
-r ../requirements.txt
pytest
pytest-aiohttp

0 comments on commit 53106d1

Please sign in to comment.