forked from etianen/django-reversion
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to match the newest version of source repository
- Loading branch information
1 parent
eca6915
commit 5cee0b6
Showing
64 changed files
with
690 additions
and
372 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,76 @@ | ||
name: Python package | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
services: | ||
postgres: | ||
image: postgres | ||
env: | ||
POSTGRES_PASSWORD: postgres | ||
options: >- | ||
--health-cmd pg_isready | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 5432:5432 | ||
mysql: | ||
image: mysql | ||
env: | ||
MYSQL_ROOT_PASSWORD: root | ||
MYSQL_DATABASE: root | ||
options: >- | ||
--health-cmd "mysqladmin -uroot -proot ping" | ||
--health-interval 10s | ||
--health-timeout 5s | ||
--health-retries 5 | ||
ports: | ||
- 3306:3306 | ||
env: | ||
PYTHONDEVMODE: 1 | ||
DJANGO_DATABASE_HOST_POSTGRES: localhost | ||
DJANGO_DATABASE_USER_POSTGRES: postgres | ||
DJANGO_DATABASE_NAME_POSTGRES: postgres | ||
DJANGO_DATABASE_PASSWORD_POSTGRES: postgres | ||
DJANGO_DATABASE_HOST_MYSQL: 127.0.0.1 | ||
DJANGO_DATABASE_USER_MYSQL: root | ||
DJANGO_DATABASE_NAME_MYSQL: root | ||
DJANGO_DATABASE_PASSWORD_MYSQL: root | ||
strategy: | ||
matrix: | ||
python-version: [3.8, 3.9, '3.10', '3.11', '3.12'] | ||
django-version: | ||
- '>=5.0,<6.0' | ||
- '>=4.2,<5.0' | ||
exclude: | ||
- python-version: 3.9 | ||
django-version: '>=5.0,<6.0' | ||
- python-version: 3.8 | ||
django-version: '>=5.0,<6.0' | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies (Django ${{ matrix.django-version }}) | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install --pre django'${{ matrix.django-version }}' | ||
python -m pip install flake8 coverage sphinx sphinx_rtd_theme psycopg2 mysqlclient -e . | ||
- name: Lint with flake8 | ||
run: | | ||
flake8 | ||
- name: Check no missing migrations | ||
run: | | ||
tests/manage.py makemigrations --check | ||
- name: Test with unittest | ||
run: | | ||
coverage run tests/manage.py test tests | ||
coverage report | ||
- name: Build docs | ||
run: | | ||
(cd docs && sphinx-build -n -W . _build) |
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,26 @@ | ||
name: Upload Python Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install setuptools wheel twine | ||
- name: Build and publish | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }} | ||
run: | | ||
python setup.py sdist bdist_wheel | ||
twine upload dist/* |
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,11 @@ | ||
version: 2 | ||
build: | ||
os: ubuntu-20.04 | ||
tools: | ||
python: "3.9" | ||
sphinx: | ||
configuration: docs/conf.py | ||
python: | ||
install: | ||
- method: pip | ||
path: . |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.