forked from nephila/djangocms-blog
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Move package metadata to setup.cfg * Port to github actions * Add towncrier * Add bumpversion * Add pre-commit * Add github issues / PR templates * Improve contributing documentation * Reformat code
- Loading branch information
Showing
151 changed files
with
4,841 additions
and
3,826 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
name: "\U0001F41B Bug report" | ||
about: Create a report to help us improve | ||
title: '' | ||
labels: 'type: bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- | ||
Please fill in each section to help maintainers to be helpful and quick to respond. | ||
--> | ||
|
||
## Description | ||
|
||
<!-- | ||
Describe issue in general terms. | ||
--> | ||
|
||
## Steps to reproduce | ||
|
||
<!-- | ||
Provide clear steps to reproduce the issue. | ||
--> | ||
|
||
## Versions | ||
|
||
<!-- | ||
Provide at least Python, Django and application version. | ||
--> | ||
|
||
## Expected behaviour | ||
|
||
<!-- | ||
Provide what you would have expected to happen. | ||
--> | ||
|
||
## Actual behaviour | ||
|
||
<!-- | ||
Provide what happened. | ||
--> | ||
|
||
## Additional information | ||
|
||
<!-- | ||
Add any other information. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
name: "\U0001F389 Feature request" | ||
about: Share your idea, let's discuss it! | ||
title: '' | ||
labels: 'type: feature' | ||
assignees: '' | ||
|
||
--- | ||
|
||
<!-- | ||
Please fill in each section to help maintainers to be helpful and quick to respond. | ||
--> | ||
|
||
## Description | ||
|
||
<!-- | ||
Describe the feature in general terms. | ||
--> | ||
|
||
## Use cases | ||
|
||
<!-- | ||
What use cases these feature will address? | ||
--> | ||
|
||
## Proposed solution | ||
|
||
<!-- | ||
A clear and concise description of what you want to happen. | ||
--> | ||
|
||
## Alternatives | ||
|
||
<!-- | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
--> | ||
|
||
## Additional information | ||
|
||
<!-- | ||
Add any other information. | ||
--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Description | ||
|
||
Describe: | ||
|
||
* Content of the pull request | ||
* Feature added / Problem fixed | ||
|
||
## References | ||
|
||
Provide any github issue fixed (as in ``Fix #XYZ``) | ||
|
||
# Checklist | ||
|
||
* [ ] I have read the [contribution guide](https://django-app-helper.readthedocs.io/en/latest/contributing.html) | ||
* [ ] Code lint checked via `inv lint` | ||
* [ ] ``changes`` file included (see [docs](https://django-app-helper.readthedocs.io/en/latest/contributing.html#pull-request-guidelines)) | ||
* [ ] Usage documentation added in case of new features | ||
* [ ] Tests added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [published,prereleased] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
- name: Cache tox | ||
uses: actions/cache@v1 | ||
with: | ||
path: .tox | ||
key: ${{ runner.os }}-tox-release-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-tox-release- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools tox>=1.8 | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: __token__ | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
tox -erelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Linting - Tests | ||
|
||
on: [push] | ||
|
||
jobs: | ||
lint: | ||
runs-on: ubuntu-latest | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
strategy: | ||
matrix: | ||
python-version: [3.8] | ||
toxenv: [pep8, isort, black, pypi-description, docs, towncrier] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
- name: Cache tox | ||
uses: actions/cache@v1 | ||
with: | ||
path: .tox | ||
key: ${{ runner.os }}-lint-${{ matrix.toxenv }}-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-lint-${{ matrix.toxenv }}- | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools tox>=1.8 | ||
- name: Test with tox | ||
run: | | ||
tox -e${{ matrix.toxenv }} | ||
test: | ||
if: "!contains(github.event.head_commit.message, '[skip ci]')" | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.7, 3.6, 3.5] | ||
django: [30, 22] | ||
cms: [37] | ||
exclude: | ||
- python-version: 3.5 | ||
django: 30 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Cache pip | ||
uses: actions/cache@v1 | ||
with: | ||
path: ~/.cache/pip | ||
key: ${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
restore-keys: | | ||
${{ runner.os }}-pip-${{ matrix.toxenv }} | ||
- name: Cache tox | ||
uses: actions/cache@v1 | ||
with: | ||
path: .tox | ||
key: ${{ runner.os }}-tox-${{ format('{{py{0}-django{1}-cms{2}}}', matrix.python-version, matrix.django, matrix.cms) }}-${{ hashFiles('setup.cfg') }} | ||
restore-keys: | | ||
${{ runner.os }}-tox-${{ format('{{py{0}-django{1}-cms{2}}}', matrix.python-version, matrix.django, matrix.cms) }}- | ||
- name: Install dependencies | ||
run: | | ||
sudo apt-get install gettext | ||
python -m pip install --upgrade pip tox>=3.5 | ||
- name: Test with tox | ||
env: | ||
TOX_ENV: ${{ format('py{0}-django{1}-cms{2}', matrix.python-version, matrix.django, matrix.cms) }} | ||
COMMAND: coverage run | ||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | ||
run: | | ||
tox -e$TOX_ENV | ||
.tox/$TOX_ENV/bin/coverage xml | ||
.tox/$TOX_ENV/bin/coveralls | ||
- uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
flags: unittests | ||
file: ./coverage.xml | ||
fail_ci_if_error: false | ||
services: | ||
redis: | ||
image: redis | ||
ports: | ||
- 6379:6379 |
Oops, something went wrong.