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
Feature add codecov #3
Conversation
- Added `models_for_test.py` file with `Parent` and `Child` classes. - Created a new table called `parents_to_children` to establish a many-to-many relationship between parents and children. - Updated the `test_crud.py` file to import the newly added models (`Parent`, `Child`, and `Base`) from `models_for_test.py`. - Added test data creation methods (`create_test_data()` and `link_children_to_parents()`) to populate the database with parent and child records. - Modified existing tests in the `TestGetModels` class to use the new models (`Parent`) instead of the old model (`TestModel`).
This commit adds black and pylint as dev dependencies in the pyproject.toml file. The pytest version is also updated to "^7.4.0". fix: Fix newline at end of file This commit fixes the missing newline at the end of the models_for_test.py file. refactor: Refactor test_crud.py This commit refactors the test_crud.py file by removing unused variables, fixing indentation, and improving code readability.
This commit renames the file dependabot.yml to workflows/dependabot.yml. This change was made to improve the organization and structure of the codebase.
This commit renames the dependabot.yml file to .github/dependabot.yml. This change improves the organization of the repository by moving the file to a more appropriate location.
This commit adds a new workflow file, `.github/workflows/dependabot-prs.yml`, which sets up a job to fetch metadata from Dependabot. The workflow is triggered on pull requests and runs only if the actor is `dependabot[bot]`. The fetched metadata includes dependency names, dependency types, and update types. Co-authored-by: AI Assistant <assistant@example.com>
- Update the pytest command in the workflow file to include coverage options and output formats. - Add a step to upload coverage reports to Codecov using the codecov-action GitHub Action. - Set up environment variables for the Codecov token.
- Updated `actions/checkout` to version 3.5.3 - Updated `actions/setup-python` to version 3.1.4 - Updated `actions/cache` to version 3.3.1 - Replaced manual installation of Poetry with `snok/install-poetry@v1` - Added caching for dependencies using poetry.lock file - Improved naming and added descriptions for steps in the workflow
- Added codecov badge to display code coverage in the README.md file.
- Added `models_for_test.py` file with `Parent` and `Child` classes. - Created a new table called `parents_to_children` to establish a many-to-many relationship between parents and children. - Updated the `test_crud.py` file to import the newly added models (`Parent`, `Child`, and `Base`) from `models_for_test.py`. - Added test data creation methods (`create_test_data()` and `link_children_to_parents()`) to populate the database with parent and child records. - Modified existing tests in the `TestGetModels` class to use the new models (`Parent`) instead of the old model (`TestModel`).
This commit adds black and pylint as dev dependencies in the pyproject.toml file. The pytest version is also updated to "^7.4.0". fix: Fix newline at end of file This commit fixes the missing newline at the end of the models_for_test.py file. refactor: Refactor test_crud.py This commit refactors the test_crud.py file by removing unused variables, fixing indentation, and improving code readability.
This commit renames the file dependabot.yml to workflows/dependabot.yml. This change was made to improve the organization and structure of the codebase.
This commit renames the dependabot.yml file to .github/dependabot.yml. This change improves the organization of the repository by moving the file to a more appropriate location.
9dd70e8
to
f803db5
Compare
Codecov Report
❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more. Additional details and impacted files@@ Coverage Diff @@
## master #3 +/- ##
==========================================
Coverage ? 100.00%
==========================================
Files ? 2
Lines ? 56
Branches ? 0
==========================================
Hits ? 56
Misses ? 0
Partials ? 0 ☔ View full report in Codecov by Sentry. |
No description provided.