Skip to content

Commit

Permalink
Merge pull request #29 from codePerfectPlus/doc-patch
Browse files Browse the repository at this point in the history
support: creating worflow files
  • Loading branch information
DrakeEntity authored Oct 21, 2022
2 parents eebadae + 197321e commit 7a17898
Show file tree
Hide file tree
Showing 10 changed files with 203 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.buymeacoffee.com/codeperfectplus"]
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''

---
**Are you using latest code**

**Describe the bug**
A clear and concise description of what the bug is.


**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Pythonversion**
- Python version

**Additional context**
Add any other context about the problem here.
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: enhancement
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/update-documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
name: Update Documentation
about: Describe this issue template's purpose here.
title: ''
labels: documentation, enhancement
---

**Short introduction what you want to change in README.md **
example:- code change, outdated Readme
13 changes: 13 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
**What have you Changed**

what you changed in the codebase.write here


### Issue no.(must) - #

### Self Check(Tick After Making pull Request)

- [x] One Change in one Pull Request
- [x] I am following clean code and Documentation and my code is well linted with flake8.

Join Us on Discord:- https://discord.gg/JfbK3bS
17 changes: 17 additions & 0 deletions .github/workflows/add_labels.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Add Labels

on:
pull_request:
types: opened

jobs:
add_labels:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-ecosystem/action-add-labels@v1
if: ${{ startsWith(github.event.comment.body, '/add-labels') }}
with:
labels: |
ready-for-review
opened
20 changes: 20 additions & 0 deletions .github/workflows/auto_close_empty_issues.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# GitHub Action that uses close-issue auto-close empty issues after they are opened.
# If the issue body text is empty the Action auto-closes it and sends a notification.
# Otherwise if the issue body is not empty, it does nothing and the issue remains open.
# https://github.com/marketplace/actions/close-issue

name: auto_close_empty_issues
on:
issues:
types: [opened]
jobs:
check-issue-body-not-empty:
runs-on: ubuntu-latest
steps:
- if: github.event.issue.body == 0
name: Close Issue
uses: peter-evans/close-issue@v1
with:
comment: |
Issue body must contain content.
Auto-closing this issue.
62 changes: 62 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [main]
pull_request:
# The branches below must be a subset of the branches above
branches: [main]
schedule:
- cron: '0 9 * * 5'

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['python']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
21 changes: 21 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish package to PyPI
on: push
jobs:
build-and-publish:
name: Build and Publish to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Use Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run setup
run: >-
python setup.py sdist
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 17 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
on: [pull_request]

jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install flake8
run: |
python -m pip install --upgrade pip
pip install flake8
- name: Lint with flake8
run: flake8 . --isolated --exclude=.cache,.venv,.svn,CVS,.bzr,.hg,.git,__pycache__,.tox,**/migrations/** --ignore=E203,W503,E501,F401

0 comments on commit 7a17898

Please sign in to comment.