This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup The Repo For Fresh Start and Improved the Functionality and Str…
…ucture (#28)
- Loading branch information
Showing
12 changed files
with
204 additions
and
575 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Publish Package To PyPi | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
Release-Nature: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check release type | ||
run: | | ||
if [ "${{ github.event.release.prerelease }}" == "false" ]; then | ||
echo "Stable Release." | ||
else | ||
echo "Prerelease Release" | ||
fi | ||
Tests: | ||
runs-on: ["ubuntu-latest", "windows-latest", "macOS-latest"] | ||
|
||
strategy: | ||
matrix: | ||
python-version: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install poetry | ||
poetry install --no-root | ||
- name: Run MyPy | ||
run: | | ||
poetry run mypy src | ||
- name: Run Flake8 | ||
run: | | ||
poetry run flake8 src | ||
- name: Run Pytest | ||
run: | | ||
poetry run coverage run -m pytest | ||
- name: Coverage Report | ||
run: | | ||
poetry run coverage report |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Deployment Guidelines | ||
|
||
To deploy the Smart Manager Application, follow these step-by-step guidelines: | ||
|
||
## Testing Application | ||
|
||
Before deploying, thoroughly test the application both locally and through automated testing. Manual testing can also help ensure a robust deployment. | ||
|
||
## Drafting Release | ||
|
||
Draft a release on the GitHub repository, adhering to the guidelines outlined in [Version Guidelines](Version_Guidelines.md). This ensures consistency and clarity in versioning. | ||
|
||
## Asset Uploading | ||
|
||
After drafting a release, proceed to create and upload assets. Follow these guidelines: | ||
|
||
- Assets should be named using the pattern `smart-manager.${release.tag.name}.python.zip`. | ||
- The .zip file must include essential files such as `LICENSE` and `README`, along with other files required for the application to run. | ||
- Ensure that the .zip file directly contains its content rather than being nested within a folder named "smart_manager." | ||
|
||
## Checking for Errors | ||
|
||
Before publishing the release, meticulously check for any human errors. If identified, address them promptly to avoid issues in the production environment. | ||
|
||
## Publishing | ||
|
||
Once all checks are completed, publish the release to make it available in a real production environment. | ||
|
||
## Monitoring | ||
|
||
With the release in production, monitor for any errors. This includes checking for issues in the deployment process or within the application source code itself. | ||
|
||
These guidelines are designed to ensure a smooth and error-free deployment process. Following each step diligently contributes to a successful release and a stable production environment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.