Skip to content

Write Unit Test for P2P Client #27

Write Unit Test for P2P Client

Write Unit Test for P2P Client #27

Workflow file for this run

# This workflow will install Python dependencies, run tests for a single version of Python (3.9)
name: Python application
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.9
uses: actions/setup-python@v3
with:
python-version: "3.9"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
cd backend
pip install -r requirements.txt
- name: Test
run: |
cd backend
python -m unittest discover .
- name: View Coverage
run: |
cd backend
coverage run --source=code -m unittest discover -s .
coverage report -m