Skip to content

Refactor: CSR Architecture - Phase 4 #1

Refactor: CSR Architecture - Phase 4

Refactor: CSR Architecture - Phase 4 #1

Workflow file for this run

name: Run Tests on PR
on:
pull_request:
branches: [ "*" ]
push:
branches: [ main, dev ]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run all tests
run: |
python run_all_tests.py --verbose
- name: Run tests with coverage
run: |
pip install coverage
python run_all_tests.py --coverage --verbose
- name: Test individual services
run: |
echo "Testing Account Service..."
python run_all_tests.py --services account --verbose
echo "Testing Problem Service..."
python run_all_tests.py --services problem --verbose
echo "Testing Auth Service..."
python run_all_tests.py --services auth --verbose
echo "Testing Collection Service..."
python run_all_tests.py --services collection --verbose
echo "Testing Group Service..."
python run_all_tests.py --services group --verbose
echo "Testing Submission Service..."
python run_all_tests.py --services submission --verbose
echo "Testing Topic Service..."
python run_all_tests.py --services topic --verbose