Skip to content

Update test-calc.py #29

Update test-calc.py

Update test-calc.py #29

Workflow file for this run

name: Python CI Workflow
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coverage
- name: Run tests with coverage
run: |
coverage run test-calc.py
- name: Generate coverage report and check threshold
run: |
coverage html
coverage report --fail-under=95