Skip to content

Commit

Permalink
Merge pull request #89 from shradiphylleia/main
Browse files Browse the repository at this point in the history
Add GitHub Actions #53
  • Loading branch information
rohitinu6 authored Oct 8, 2024
2 parents 41328e5 + 9545421 commit 6d53db3
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/PR_TEMPLATE.md
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 -->
30 changes: 30 additions & 0 deletions .github/workflows/contributioncheck.yml
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."
28 changes: 28 additions & 0 deletions .github/workflows/dependencies.yml
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
16 changes: 16 additions & 0 deletions .github/workflows/greetings.yml
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"

0 comments on commit 6d53db3

Please sign in to comment.