Skip to content

BCeZn/test-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages