Write Unit Test for P2P Client #29
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |