-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from peopledoc/django3_migration
Django3 migration
- Loading branch information
Showing
10 changed files
with
207 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Closes #<ticket number> | ||
|
||
### Checklist: | ||
<!-- In case of doubt, we're here to help. CONTRIBUTING.rst might help too --> | ||
- [ ] Tests | ||
- [ ] (not applicable?) | ||
- [ ] Documentation | ||
- [ ] (not applicable?) | ||
|
||
<!-- We hope your contributing experience was great so far. If you would like to | ||
provide some feedback, please feel free to do so! --> |
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,8 @@ | ||
name-template: '$NEXT_MINOR_VERSION' | ||
tag-template: '$NEXT_MINOR_VERSION' | ||
template: | | ||
$CHANGES | ||
## Kudos: | ||
$CONTRIBUTORS |
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,96 @@ | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- 'master' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build: | ||
|
||
strategy: | ||
matrix: | ||
include: | ||
|
||
- name: Python 3.6 / Django 1.10 | ||
python_version: "3.6" | ||
tox_env: py36-django110 | ||
|
||
- name: Python 3.7 / Django 1.10 | ||
python_version: "3.7" | ||
tox_env: py37-django110 | ||
|
||
- name: Python 3.7 / Django 2.2 | ||
python_version: "3.7" | ||
tox_env: py37-django22 | ||
|
||
- name: Python 3.9 / Django 2.2 | ||
python_version: "3.9" | ||
tox_env: py39-django22 | ||
|
||
- name: Python 3.9 / Django 3.0 | ||
python_version: "3.9" | ||
tox_env: py39-django30 | ||
|
||
- name: Python 3.9 / Django 3.1 | ||
python_version: "3.9" | ||
tox_env: py39-django31 | ||
|
||
- name: Python 3.7 / Django 3.2 | ||
python_version: "3.7" | ||
tox_env: py37-django32 | ||
|
||
- name: Python 3.8 / Django 3.2 | ||
python_version: "3.8" | ||
tox_env: py38-django32 | ||
|
||
- name: Python 3.9 / Django 3.2 | ||
python_version: "3.9" | ||
tox_env: py39-django32 | ||
|
||
- name: Python 3.9 / Django 4.0 | ||
python_version: "3.9" | ||
tox_env: py39-django40 | ||
|
||
- name: Flake8 | ||
python_version: "3" | ||
tox_env: flake8 | ||
|
||
name: "${{ matrix.name }}" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
id: setup-python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
|
||
- name: Pip cache | ||
uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.cache/ | ||
key: ${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('setup.cfg') }} | ||
|
||
- name: Install Tox | ||
run: pip install tox | ||
|
||
- name: Run ${{ matrix.name }} | ||
run: tox | ||
env: | ||
TOXENV: "${{ matrix.tox_env }}" | ||
|
||
report-status: | ||
name: success | ||
runs-on: ubuntu-latest | ||
needs: build | ||
steps: | ||
|
||
- name: Report success | ||
run: echo 'Success !' |
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: Deploy | ||
|
||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
deploy: | ||
name: Publish package to PyPI | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
id: setup-python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python_version }} | ||
|
||
- name: Install | ||
run: pip install build | ||
|
||
- name: Build package | ||
run: python -m build | ||
|
||
- name: Wait for tests to succeed | ||
uses: fountainhead/[email protected] | ||
id: wait-for-ci | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
checkName: success | ||
|
||
- name: Exit if CI did not succeed | ||
if: steps.wait-for-ci.outputs.conclusion != 'success' | ||
run: exit 1 | ||
|
||
- name: Publish a Python distribution to PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: "${{ secrets.PYPI_TOKEN }}" |
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,15 @@ | ||
name: Release Drafter | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
update_release_draft: | ||
runs-on: ubuntu-latest | ||
steps: | ||
# Drafts the next Release notes as Pull Requests are merged into "master" | ||
- uses: release-drafter/release-drafter@v5 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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