Skip to content

Commit 69e69a2

Browse files
committed
🌅 Initial commit
0 parents  commit 69e69a2

File tree

21 files changed

+1168
-0
lines changed

21 files changed

+1168
-0
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Bug report
3+
about: Report a bug in tutor-contrib-wordpress
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+
16+
1. Go to '...'
17+
2. Click on '....'
18+
3. Scroll down to '....'
19+
4. See error
20+
21+
**Expected behavior**
22+
A clear and concise description of what you expected to happen.
23+
24+
**Screenshots**
25+
If applicable, add screenshots to help explain your problem.
26+
27+
**Desktop (please complete the following information):**
28+
29+
- OS: [e.g. Linux]
30+
- Version [e.g. 1.0.0]
31+
32+
**Additional context**
33+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest or encourage the addition of a new feature to tutor-contrib-wordpress
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/release.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
name: Release and Publish package to PyPI
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*"
7+
8+
jobs:
9+
release:
10+
runs-on: ${{ matrix.os }}
11+
strategy:
12+
matrix:
13+
include:
14+
# https://github.com/actions/runner-images#available-images
15+
- os: ubuntu-latest
16+
locale: C.UTF-8
17+
env:
18+
LC_ALL: ${{ matrix.locale }}
19+
LANG: ${{ matrix.locale }}
20+
steps:
21+
##### Setup environment
22+
# https://github.com/actions/checkout
23+
- uses: actions/checkout@v4
24+
- name: Set up Python
25+
# https://github.com/actions/setup-python
26+
uses: actions/setup-python@v5
27+
with:
28+
python-version: 3.8
29+
cache: "pip"
30+
- name: Upgrade pip and setuptools
31+
# https://pypi.org/project/pip/
32+
# https://pypi.org/project/setuptools/
33+
# https://pypi.org/project/wheel/
34+
run: python -m pip install --upgrade pip setuptools==65.6.3 wheel
35+
- name: Print info about the current python installation
36+
run: make ci-info
37+
- name: Install requirements
38+
run: make bootstrap-dev
39+
- name: Check or download gh utility
40+
run: |
41+
if ! which gh; then
42+
echo "Downloading 'gh' utility"
43+
if [ "$(uname -s)" = "Linux" ]; then
44+
curl -L -o gh.tar.gz https://github.com/cli/cli/releases/download/v2.28.0/gh_2.28.0_linux_amd64.tar.gz
45+
tar xzf gh.tar.gz
46+
mv ./gh_2.28.0_linux_amd64/bin/gh /usr/local/bin/gh
47+
else
48+
curl -L -o gh.zip https://github.com/cli/cli/releases/download/v2.28.0/gh_2.28.0_macOS_amd64.zip
49+
unzip xzf gh.zip
50+
mv ./gh_2.28.0_macOS_amd64/bin/gh /usr/local/bin/gh
51+
fi
52+
which gh
53+
fi
54+
55+
##### Create release on GitHub
56+
- name: Create or update GitHub release
57+
run: scriv github-release --repo=codewithemad/tutor-contrib-wordpress
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/test.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Run tests
2+
3+
on:
4+
pull_request:
5+
branches: [master]
6+
7+
jobs:
8+
tests:
9+
runs-on: ubuntu-latest
10+
strategy:
11+
matrix:
12+
python-version: ['3.8', '3.12']
13+
steps:
14+
- uses: actions/checkout@v4
15+
- name: Set up Python ${{ matrix.python-version }}
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: ${{ matrix.python-version }}
19+
- name: Upgrade pip
20+
run: python -m pip install --upgrade pip
21+
- name: Install dependencies
22+
run: |
23+
pip install .[dev]
24+
- name: Test lint, types, and format
25+
run: make test

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.*.swp
2+
!.gitignore
3+
TODO
4+
__pycache__
5+
*.egg-info/
6+
/build/
7+
/dist/
8+
.venv/

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
<a id='changelog-1.0.0'></a>
3+
## v1.0.0 (2024-07-25)
4+
5+
- [Improvement] Plugin Burn - First Release! 🔥(by @CodeWithEmad)

0 commit comments

Comments
 (0)