Skip to content

Add GitHub Actions Python CI workflow#78

Open
KyryloKilin wants to merge 2 commits into
mate-academy:mainfrom
KyryloKilin:develop
Open

Add GitHub Actions Python CI workflow#78
KyryloKilin wants to merge 2 commits into
mate-academy:mainfrom
KyryloKilin:develop

Conversation

@KyryloKilin

Copy link
Copy Markdown

No description provided.

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Great work on setting up this GitHub Actions workflow! It's well-structured and meets most of the requirements. However, one change is needed before this can be approved.

The workflow currently uploads the Python runtime version as an artifact, but the requirement is to upload the project's source code. Please modify the upload-artifact step to archive the directory containing your application's code. You can remove the preceding step that saves the Python version to a file, as it won't be needed.

Once that's fixed, this will be ready to go!


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Important

Fix the issues, commit the changes, and then re-request my review using the Re-request review button2 in the Reviewers tab.

Tip

If you have any comments about this review, please leave a message in the Add a comment section below and mention me with the @mateacademy-ai-mentor tag3.
I will read your message during my next review of your pull request. Please do not reply directly to my comments, as that feature is not supported yet.

Caution

Do not close the pull request until the review is complete. Closing it early can lead to unexpected behavior and disrupt the review process.

Footnotes

  1. Rate AI review example

  2. Re-request AI review example

  3. Add AI review comments example

Comment thread .github/workflows/python-ci.yml Outdated

@mateacademy-ai-mentor mateacademy-ai-mentor left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Excellent work! You've successfully addressed all the requirements, and the workflow is well-structured. I am approving your submission. I have one small suggestion to make the workflow more efficient. The 'Run tests' step in .github/workflows/python-ci.yml is redundant because the 'Generate coverage' step also runs the tests via coverage run manage.py test. You can safely remove the first test step to speed up the workflow. This is a minor optimization, and the current implementation is perfectly fine.


✨ Please rate this review in the Platform's notification center1. I will be grateful for your feedback! ✨

Footnotes

  1. Rate AI review example

Comment on lines +35 to +38
- name: Run tests
working-directory: src
run: |
python manage.py test

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This step is redundant because the 'Generate coverage' step on line 40 also runs the tests. To make the workflow more efficient, you can remove this step. The coverage run manage.py test command fulfills both the requirement to run tests and to generate coverage data.

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.

2 participants