Skip to content

directly passes weekly dep-freq to the score function #2

directly passes weekly dep-freq to the score function

directly passes weekly dep-freq to the score function #2

Workflow file for this run

name: Unit Tests
on:
pull_request:
branches: [ "main" ]
paths:
- 'backend/**'
- '**/*.py'
push:
branches: [ "main" ]
paths:
- 'backend/**'
- '**/*.py'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.11.6'
- name: Install dependencies
run: |
cd ./backend
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
env:
DB_HOST: "localhost"
DB_NAME: "mhq-oss"
DB_PASS: "postgres"
DB_PORT: 5432
DB_USER: "postgres"
run: |
pip install pytest pytest-cov
pytest ./backend/analytics_server/tests/ --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html