diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..9087a3a --- /dev/null +++ b/.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/Bobrikov/README.md b/Bobrikov/README.md new file mode 100644 index 0000000..2fb36d8 --- /dev/null +++ b/Bobrikov/README.md @@ -0,0 +1 @@ +# Hello, git! diff --git a/Bobrikov/main.py b/Bobrikov/main.py new file mode 100644 index 0000000..3bddbbe --- /dev/null +++ b/Bobrikov/main.py @@ -0,0 +1,2 @@ +def hello(): + return "Hello, CI/CD!" diff --git a/Bobrikov/test_main.py b/Bobrikov/test_main.py new file mode 100644 index 0000000..6a0faf9 --- /dev/null +++ b/Bobrikov/test_main.py @@ -0,0 +1,5 @@ +from main import hello + + +def test_hello(): + assert hello() == "Hello, CI/CD!"