Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/test_research_assistant.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Unit Tests - Research Assistant

on:
push:
branches: [main, dev]
paths:
- 'ResearchAssistant/**'
pull_request:
branches: [main, dev]
types:
- opened
- ready_for_review
- reopened
- synchronize
paths:
- 'ResearchAssistant/**'

jobs:
test_research_assistant:
name: Research Assistant Tests
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"

- name: Install Backend Dependencies
run: |
cd ResearchAssistant/App
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install coverage pytest pytest-cov pytest-asyncio

- name: Run Backend Tests with Coverage
run: |
cd ResearchAssistant/App
python -m pytest -vv --cov=. --cov-report=xml --cov-report=html --cov-report=term-missing --cov-fail-under=80 --junitxml=coverage-junit.xml
- uses: actions/upload-artifact@v4
with:
name: research-assistant-coverage
path: |
ResearchAssistant/App/coverage.xml
ResearchAssistant/App/coverage-junit.xml
ResearchAssistant/App/htmlcov/
Loading
Loading