Skip to content

Commit

Permalink
Update tox / rtfd setup
Browse files Browse the repository at this point in the history
  • Loading branch information
yakky committed May 8, 2023
1 parent ace55db commit 5220d47
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 6 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
python-version: ["3.11", "3.10", "3.9"]
django: [42, 41, 32]
cms: [311, 39]
continue-on-error: [false]
exclude:
- django: 41
cms: 39
- django: 42
cms: 39
- django: 32
cms: 311
- django: 42
cms: 311
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
Expand Down Expand Up @@ -57,3 +62,8 @@ jobs:
flags: unittests
files: ./coverage.xml
fail_ci_if_error: false
services:
redis:
image: redis
ports:
- 6379:6379
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ repos:
hooks:
- id: black
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.262'
rev: 'v0.0.265'
hooks:
- id: ruff
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.2
rev: v3.4.0
hooks:
- id: pyupgrade
args:
Expand Down
6 changes: 5 additions & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.10"

sphinx:
configuration: docs/conf.py
fail_on_warning: false
Expand All @@ -9,7 +14,6 @@ formats:
- pdf

python:
version: 3.8
install:
- requirements: requirements-test.txt
- method: pip
Expand Down
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ djangocms_blog = *.html *.png *.gif *js *jpg *jpeg *svg *py *mo *po
taggit-helpers = django-taggit-helpers
docs =
django<5.0
sphinx>2,<5

[sdist]
formats = zip
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ envlist =
pypi-description
towncrier
py{311,310,39}-django{42,41}-cms{311}
py{311,310,39}-django{32}-cms{311,39}
py{311,310,39}-django{32}-cms{39}

[testenv]
commands = {env:COMMAND:python} cms_helper.py djangocms_blog test {posargs}
Expand All @@ -26,8 +26,8 @@ deps =
django42: django-mptt>=0.9
django42: django-filer>=2.0
django42: django-appdata>=0.3.2
cms39: https://github.com/divio/django-cms/archive/release/3.9.x.zip
cms311: https://github.com/divio/django-cms/archive/release/3.11.x.zip
cms39: https://github.com/django-cms/django-cms/archive/release/3.9.x.zip
cms311: https://github.com/yakky/django-cms/archive/release/3.11.x.zip
channels[daphne]~=4.0.0
django-knocker~=0.5.1
channels-redis
Expand Down

0 comments on commit 5220d47

Please sign in to comment.