Skip to content

Commit ded5137

Browse files
committed
Added github actions and github templates
1 parent 542b2f4 commit ded5137

File tree

5 files changed

+110
-1
lines changed

5 files changed

+110
-1
lines changed

cookiecutter.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@
1111
"use_requests": "n",
1212
"use_cryptography": "n",
1313
"__template_repo": "https://github.com/btr1975/cookiecutter-python-fastapi-openapi",
14-
"__template_version": "1.0.1"
14+
"__template_version": "1.0.2",
15+
"_copy_without_render": [
16+
".github"
17+
]
1518
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Bug Report
3+
description: File a bug report
4+
title: "[Bug]: "
5+
labels: ["bug"]
6+
body:
7+
- type: textarea
8+
attributes:
9+
label: Describe Problem
10+
description: What problem did you have?
11+
placeholder: Something is broken.
12+
validations:
13+
required: true
14+
- type: input
15+
attributes:
16+
label: Version
17+
description: What version of our software are you running?
18+
placeholder: 1.0.0
19+
validations:
20+
required: true
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
blank_issues_enabled: true
3+
contact_links:
4+
- name: Python Information
5+
url: https://www.python.org/
6+
about: Python Org Website
7+
- name: FastAPI Information
8+
url: https://fastapi.tiangolo.com/
9+
about: FastAPI Website
10+
- name: pydantic Information
11+
url: https://pydantic-docs.helpmanual.io/
12+
about: pydantic Website
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Description
2+
3+
Please include a summary of the change and which issue is fixed if applicable. Please also include relevant motivation
4+
and context.
5+
6+
List any dependencies that are required for this change.
7+
8+
Fixes # (issue)
9+
10+
## Type of change
11+
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Bug fix (non-breaking change which fixes an issue)
14+
- [ ] Possible Breaking change (fix or feature that could cause existing functionality to not work as expected)
15+
16+
# Checklist:
17+
18+
- [ ] My code follows the style guidelines
19+
- [ ] I have updated the requirements.txt
20+
- [ ] I have updated the setup.py
21+
- [ ] I have updated the requirements-dev.txt
22+
- [ ] I have linted my code
23+
- [ ] I have written unit-tests for python code
24+
- [ ] I have verified code coverage
25+
- [ ] I have updated the documents
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3+
4+
name: Unit-Testing, Coverage, Linting
5+
6+
on:
7+
push:
8+
branches:
9+
- master
10+
- develop
11+
- feature/*
12+
- bug/*
13+
pull_request:
14+
branches:
15+
- master
16+
- develop
17+
- feature/*
18+
- bug/*
19+
20+
jobs:
21+
build:
22+
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
python-version:
27+
- 3.7
28+
- 3.8
29+
- 3.9
30+
- '3.10'
31+
32+
steps:
33+
- uses: actions/checkout@v3
34+
- name: Set up Python ${{ matrix.python-version }}
35+
uses: actions/setup-python@v4
36+
with:
37+
python-version: ${{ matrix.python-version }}
38+
- name: Upgrade pip setuptools wheel
39+
run: |
40+
python -m pip install --upgrade pip setuptools wheel
41+
- name: Install requirements from requirements-dev.txt
42+
run: |
43+
pip install -r requirements-dev.txt
44+
- name: Run Linting
45+
run: |
46+
make pylint
47+
- name: Run Unit-Testing and Coverage
48+
run: |
49+
make coverage

0 commit comments

Comments
 (0)