Skip to content

Commit

Permalink
Adding make unittest
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua-K1 committed Jul 8, 2024
1 parent 2265134 commit e89f234
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/run-test-suite.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
python-version: ['3.12']

env:
AZURE_VAULT_ID: ${{ secrets.TEST_AZURE_VAULT_ID }}
Expand All @@ -40,15 +40,9 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f src/requirements.txt ]; then pip install -r src/requirements.txt; fi
- name: Run tests
working-directory: src/
run: |
pytest tests/ -vv -s --junit-xml=test-results.xml
working-directory: /
run: make unittest

- name: Surface failing tests
if: always()
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ mkdocs-build:
run:
./buildscripts/run_docker.sh

unittest:
$(MAKE) build-local
$(MAKE) run-tests

run-tests:
./buildscripts/run_tests.sh

Expand Down Expand Up @@ -56,4 +60,4 @@ inference-build:
./buildscripts/build_inference_service.sh

inference-run:
./buildscripts/run_inference_service.sh
./buildscripts/run_inference_service.sh
1 change: 1 addition & 0 deletions src/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ prometheus_fastapi_instrumentator
pydantic-core
pytest
markdown
coverage

0 comments on commit e89f234

Please sign in to comment.