diff --git a/.github/workflows/pytest_demo.yaml b/.github/workflows/pytest_demo.yaml index 1fef65d..27b9aa9 100644 --- a/.github/workflows/pytest_demo.yaml +++ b/.github/workflows/pytest_demo.yaml @@ -1,6 +1,6 @@ name: pytest Demo run-name: ${{ github.actor }} is testing out by pytest 🚀 -on: [push, workflow_dispatch] +on: [pull_request, workflow_dispatch] jobs: Pytest-CICD-demo: runs-on: ubuntu-latest diff --git a/test_first.py b/test_first.py index 4a1d678..0def490 100644 --- a/test_first.py +++ b/test_first.py @@ -3,5 +3,5 @@ def test_add_normal(): assert add(1, 2) == 3 -# def test_add_str(): -# assert add("A", "B") == "AB" \ No newline at end of file +def test_add_str(): + assert add("A", "B") == "AB" \ No newline at end of file