Skip to content

Commit

Permalink
test one
Browse files Browse the repository at this point in the history
  • Loading branch information
hyusap committed Feb 14, 2024
1 parent 716e8ca commit 735d780
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/api_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Run Tests
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install poetry
run: |
pip install poetry
- name: Start Server
run: |
cd api
poetry install --no-root
poetry run uvicorn src.main:app &
sleep 5
cd ..
- name: Run Tests
run: |
cd sdk
poetry install
poetry run pytest
- name: Stop Server
run: |
kill $(jobs -p) || true

0 comments on commit 735d780

Please sign in to comment.