diff --git a/Ulagashev/.github/workflows/ci.yml b/Ulagashev/.github/workflows/ci.yml new file mode 100644 index 0000000..9087a3a --- /dev/null +++ b/Ulagashev/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +name: CI + +on: + push: + branches: [ main ] + pull_request: + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.12' + + - name: Install dependencies + run: pip install pytest + + - name: Run tests + run: pytest diff --git a/Ulagashev/README.md b/Ulagashev/README.md new file mode 100644 index 0000000..2fb36d8 --- /dev/null +++ b/Ulagashev/README.md @@ -0,0 +1 @@ +# Hello, git! diff --git a/Ulagashev/main.py b/Ulagashev/main.py new file mode 100644 index 0000000..3bddbbe --- /dev/null +++ b/Ulagashev/main.py @@ -0,0 +1,2 @@ +def hello(): + return "Hello, CI/CD!" diff --git a/Ulagashev/test_main.py b/Ulagashev/test_main.py new file mode 100644 index 0000000..c49be78 --- /dev/null +++ b/Ulagashev/test_main.py @@ -0,0 +1,4 @@ +from main import hello + +def test_hello(): + assert hello() == "Hello, CI/CD!"