Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Instruction

Add the unit test test_calc.py

import pytest
from calc import *

def test_add():
    assert add(3,4)==7

def test_sub():
    assert sub(3,4)==-1

In terminal, you may run the unit test using the command "pytest".

Under the "Action" tab, in the GitHub repository, click "New Workflow". Select "Configure" under "Python application".

alt text

Preview the Github workflow python-app.yml. click Commit.

Whenever there are changes commit to the "main" branch, the GitHub Action will be triggered to run the automated test using pytest.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages