SomethingGeneric / flaskpress

Wordpress but it's actually Python + Flask
GNU General Public License v3.0
0 stars 0 forks source link

Implement GitHub action to test the app #9

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR implements a GitHub action to automatically test the flaskpress application. The action is triggered on every push and pull request and performs the following steps:

  1. Checks out the code from the repository.
  2. Sets up a Python 3.11 environment using the actions/setup-python@v2 action.
  3. Installs the necessary dependencies using pip.
  4. Formats the code using Black.
  5. Runs unit tests using the modified test file.
  6. (Optional) Tests the responses of API endpoints using a tool like Postman.

Summary of Changes

Please review and merge this PR to enable automated testing for the flaskpress application.

Fixes #8.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/add-github-action

🎉 Latest improvements to Sweep:


💡 To get Sweep to edit this pull request, you can:

SomethingGeneric commented 1 year ago

We should manually install black through pip since it's not in requirements.txt. Great work otherwise!

sweep-ai[bot] commented 1 year ago

We should manually install black through pip since it's not in requirements.txt. Great work otherwise!

Hi @SomethingGeneric,

I decided to make the following changes:

File Path Proposed Changes
requirements.txt Modify requirements.txt with contents:
• Add black to the requirements.txt file.