Skip to content

Add tests and continuous integration#2

Open
MattUebel wants to merge 1 commit intomainfrom
add-tests-ci
Open

Add tests and continuous integration#2
MattUebel wants to merge 1 commit intomainfrom
add-tests-ci

Conversation

@MattUebel
Copy link
Owner

@MattUebel MattUebel commented Oct 22, 2024

Add unit tests and CI workflow for the repository.

  • Unit Tests

    • Add tests/test_example1.py with unit tests for add, subtract, multiply, and divide functions, including edge cases like division by zero.
    • Add tests/test_example2.py with unit tests for greet and farewell functions, including tests for different names.
  • CI Workflow

    • Add .github/workflows/ci.yml to set up GitHub Actions workflow to run tests on each commit.
    • Use Python 3.8 for the testing environment.
    • Install dependencies and run tests using pytest.
  • README.md

    • Add a badge to show the build status of the repository.

For more details, open the Copilot Workspace session.

Add unit tests and CI workflow for the repository.

* **Unit Tests**
  - Add `tests/test_example1.py` with unit tests for `add`, `subtract`, `multiply`, and `divide` functions, including edge cases like division by zero.
  - Add `tests/test_example2.py` with unit tests for `greet` and `farewell` functions, including tests for different names.

* **CI Workflow**
  - Add `.github/workflows/ci.yml` to set up GitHub Actions workflow to run tests on each commit.
  - Use Python 3.8 for the testing environment.
  - Install dependencies and run tests using `pytest`.

* **README.md**
  - Add a badge to show the build status of the repository.

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/MattUebel/copilot-presentation?shareId=XXXX-XXXX-XXXX-XXXX).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments