-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #89 from shradiphylleia/main
Add GitHub Actions #53
- Loading branch information
Showing
4 changed files
with
100 additions
and
0 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,26 @@ | ||
## Issue Reference Number: | ||
<!-- Please mention the issue number this PR addresses (e.g., Resolves #123) --> | ||
|
||
## Description of Changes: | ||
<!-- Please provide a summary of the changes this PR introduces. Include all relevant context --> | ||
|
||
## Type of Change: | ||
<!-- Please delete options that are not relevant --> | ||
- [ ] Bug fix | ||
- [ ] New ML model | ||
- [ ] Feature engineering | ||
- [ ] Data analysis | ||
- [ ] Documentation update | ||
- [ ] Code refactor | ||
- [ ] Other (please specify in detail): | ||
|
||
## Checklist: | ||
<!-- Please check off the following, if applicable --> | ||
- [ ] My code follows the style guidelines of this project | ||
- [ ] I have performed a self-review of my code | ||
- [ ] I have made sure to comment on my code, particularly in hard-to-understand areas | ||
- [ ] My changes generate no new warnings or errors | ||
- [ ] Unit tests pass locally with my changes | ||
|
||
## Notes for Testing your implementation: | ||
<!-- Describe how the changes or the model you added can be tested for accuracy. Include any setup or dependencies that the maintainer or reviewer might need to install --> |
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,30 @@ | ||
name: PR Contribution Rules Check | ||
|
||
on: | ||
pull_request: | ||
types: [opened, edited, synchronize] | ||
|
||
jobs: | ||
check-contribution-rules: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check PR Description for Contribution Rules | ||
run: | | ||
# Check for issue reference | ||
if ! grep -q "Issue Reference:" "$GITHUB_EVENT_PATH"; then | ||
echo "PR does not reference an issue." | ||
exit 1 | ||
fi | ||
# Check for description of changes | ||
if ! grep -q "Description of changes:" "$GITHUB_EVENT_PATH"; then | ||
echo "PR does not contain a description of changes." | ||
exit 1 | ||
fi | ||
- name: Success message | ||
run: echo "PR follows contribution rules." |
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,28 @@ | ||
name: Install Dependencies | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- develop | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: dependencies installation | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Verify installation | ||
run: | | ||
pip list # List installed packages |
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,16 @@ | ||
name: Greetings | ||
|
||
on: [pull_request_target, issues] | ||
|
||
jobs: | ||
greeting: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
issues: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/first-interaction@v1 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
issue-message: "Ensure the issue is not similar or previously being worked on.Thanks for your time" | ||
pr-message: "Ensure the PR matches the requirements mentioned in the Contribution guide. The maintainer might get in touch to enusre quality. Thanks for your time" |