Skip to content

Commit 6da4cd9

Browse files
author
Joel Lee
committed
feat: initial commit
0 parents  commit 6da4cd9

18 files changed

+1091
-0
lines changed

.coveragerc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[run]
2+
omit =
3+
docs/*
4+
examples/*
5+
tests/*

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/workflows/ci.yml

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: CI/CD
2+
3+
on: [pull_request, push, workflow_dispatch]
4+
5+
jobs:
6+
test:
7+
name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }}
8+
strategy:
9+
max-parallel: 1
10+
matrix:
11+
os: [ubuntu-latest]
12+
python-version: [3.7, 3.8, 3.9, '3.10']
13+
runs-on: ${{ matrix.os }}
14+
steps:
15+
- name: Clone Repository
16+
uses: actions/checkout@v2
17+
- name: Set up Python ${{ matrix.python-version }}
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
- name: Set up Poetry
22+
uses: abatilo/[email protected]
23+
with:
24+
poetry-version: 1.1.11
25+
- name: Run Tests
26+
run: make run_tests
27+
- name: Upload Coverage
28+
uses: codecov/codecov-action@v1
29+
30+
publish:
31+
needs: test
32+
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
33+
runs-on: ubuntu-latest
34+
name: "Bump version, create changelog and publish"
35+
steps:
36+
- name: Clone Repository
37+
uses: actions/checkout@v2
38+
with:
39+
fetch-depth: 0
40+
- name: Create bump and changelog
41+
uses: commitizen-tools/commitizen-action@master
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
branch: main
45+
changelog_increment_filename: body.md
46+
- name: Release
47+
uses: softprops/action-gh-release@v1
48+
with:
49+
body_path: body.md
50+
tag_name: ${{ env.REVISION }}
51+
env:
52+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
53+
- name: Set up Python 3.9
54+
uses: actions/setup-python@v2
55+
with:
56+
python-version: 3.9
57+
- name: Set up Poetry
58+
uses: abatilo/[email protected]
59+
with:
60+
poetry-version: 1.1.11
61+
# - name: Publish
62+
# env:
63+
# PYPI_USERNAME: __token__
64+
# PYPI_PASSWORD: ${{ secrets.PYPI_TOKEN }}
65+
# run: |
66+
# poetry install
67+
# poetry publish --build -u $PYPI_USERNAME -p $PYPI_PASSWORD

0 commit comments

Comments
 (0)