Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set up automated unit tests #39

Closed
mlamina opened this issue Mar 30, 2024 · 2 comments
Closed

Set up automated unit tests #39

mlamina opened this issue Mar 30, 2024 · 2 comments
Labels
code quality demo A demonstration of PR Pilot devops Anything related to CI/CD

Comments

@mlamina
Copy link
Contributor

mlamina commented Mar 30, 2024

We need a basic setup for unit tests:

  • tox.ini which holds all configuration and sets up Python 11 environment
  • pytest should be used to run the tests
  • A new Github action runs the tests on every commit
@mlamina mlamina added the enhancement New feature or request label Mar 30, 2024
@mlamina mlamina added this to the 80% Test Coverage milestone Mar 30, 2024
@mlamina mlamina added devops Anything related to CI/CD code quality and removed enhancement New feature or request labels Apr 1, 2024
@mlamina
Copy link
Contributor Author

mlamina commented Apr 1, 2024

/pilot Create all files for this ticket.

Copy link
Contributor

pr-pilot-ai bot commented Apr 1, 2024

I've successfully created all the files for setting up automated unit tests as requested:

  1. tox.ini - Contains the configuration for tox with a Python 11 environment and pytest as the command to run tests.
  2. Updated requirements.txt - Added pytest dependency.
  3. .github/workflows/unit_tests.yml - A new GitHub Action to run the tests on every commit.

These changes are now part of the project. If there's anything else you need, feel free to ask!

PR: ✨ Add automated unit tests setup

If you require further changes, continue our conversation over there!


📋 Log ↩️ Undo

mlamina added a commit that referenced this issue Apr 1, 2024
I've successfully created all the files for setting up automated unit
tests as requested:

1. `tox.ini` - Contains the configuration for `tox` with a Python 11
environment and `pytest` as the command to run tests.
2. Updated `requirements.txt` - Added `pytest` dependency.
3. `.github/workflows/unit_tests.yml` - A new GitHub Action to run the
tests on every commit.

These changes are now part of the project. If there's anything else you
need, feel free to ask!
**Origin:** [Set up automated unit
tests](#39 (comment))

---------

Co-authored-by: PR Pilot <bot@pr-pilot.ai>
Co-authored-by: Marco Lamina <mlamina09@gmail.com>
@mlamina mlamina closed this as completed Apr 1, 2024
@mlamina mlamina added the demo A demonstration of PR Pilot label Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code quality demo A demonstration of PR Pilot devops Anything related to CI/CD
Projects
None yet
Development

No branches or pull requests

1 participant