Skip to content

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

test-action

Test Github Actions

Project Structure

This is a simple Python project with a Hello World function and associated tests to demonstrate GitHub Actions CI/CD workflow.

Files

  • helloworld.py: Contains simple greeting functions
  • tests/test_helloworld.py: Pytest tests for the greeting functions
  • .github/workflows/python-ci.yml: GitHub Actions workflow for running tests

Functions

  • hello_world(): Returns "Hello, World!"
  • greet(name): Returns a personalized greeting "Hello, {name}!"

Running Tests Locally

To run the tests locally:

  1. Install pytest:

    pip install pytest
    
  2. Run the tests:

    python -m pytest tests/ -v
    

GitHub Actions

This repository uses GitHub Actions to automatically run tests on every push and pull request to the main branch.

About

Test Github Actions

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages