-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into GITHUB-24538627-Add-bulk-delete-to-version…
…s-djangocms-versioning
- Loading branch information
Showing
83 changed files
with
2,800 additions
and
940 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 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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 |
---|---|---|
@@ -1,26 +1,17 @@ | ||
name: Lint | ||
name: Ruff | ||
|
||
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
ruff: | ||
name: ruff | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
cache: 'pip' | ||
- run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- name: Run Ruff | ||
run: | | ||
ruff djangocms_versioning tests | ||
- uses: actions/checkout@v4 | ||
|
||
- run: python -Im pip install --user ruff | ||
|
||
- name: Run ruff | ||
run: ruff check --output-format=github djangocms_versioning tests |
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 |
---|---|---|
|
@@ -7,24 +7,29 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
sqlite-unit-tests: | ||
sqlite: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.9, "3.10", "3.11" ] # latest release minus two | ||
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two | ||
requirements-file: [ | ||
dj32_cms41.txt, | ||
dj40_cms41.txt, | ||
dj41_cms41.txt, | ||
dj42_cms41.txt, | ||
dj50_cms41.txt, | ||
dj51_cms41.txt, | ||
] | ||
exclude: | ||
- requirements-file: dj50_cms41.txt | ||
python-version: 3.9 | ||
- requirements-file: dj51_cms41.txt | ||
python-version: 3.9 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
|
@@ -34,27 +39,32 @@ jobs: | |
python setup.py install | ||
- name: Run coverage | ||
run: coverage run setup.py test | ||
run: coverage run ./test_settings.py | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
uses: codecov/codecov-action@v4 | ||
|
||
postgres-unit-tests: | ||
postgres: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.9, "3.10", "3.11" ] # latest release minus two | ||
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two | ||
requirements-file: [ | ||
dj32_cms41.txt, | ||
dj40_cms41.txt, | ||
dj41_cms41.txt, | ||
dj42_cms41.txt, | ||
dj50_cms41.txt, | ||
dj51_cms41.txt, | ||
] | ||
exclude: | ||
- requirements-file: dj50_cms41.txt | ||
python-version: 3.9 | ||
- requirements-file: dj51_cms41.txt | ||
python-version: 3.9 | ||
|
||
services: | ||
postgres: | ||
image: postgres:12 | ||
image: postgres:13 | ||
env: | ||
POSTGRES_USER: postgres | ||
POSTGRES_PASSWORD: postgres | ||
|
@@ -65,10 +75,10 @@ jobs: | |
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
|
@@ -78,25 +88,30 @@ jobs: | |
python setup.py install | ||
- name: Run coverage | ||
run: coverage run setup.py test | ||
run: coverage run ./test_settings.py | ||
env: | ||
DATABASE_URL: postgres://postgres:[email protected]/postgres | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
uses: codecov/codecov-action@v4 | ||
|
||
mysql-unit-tests: | ||
mysql: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ 3.9, "3.10", "3.11" ] # latest release minus two | ||
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two | ||
requirements-file: [ | ||
dj32_cms41.txt, | ||
dj40_cms41.txt, | ||
dj41_cms41.txt, | ||
dj42_cms41.txt, | ||
dj50_cms41.txt, | ||
dj51_cms41.txt, | ||
] | ||
exclude: | ||
- requirements-file: dj50_cms41.txt | ||
python-version: 3.9 | ||
- requirements-file: dj51_cms41.txt | ||
python-version: 3.9 | ||
|
||
services: | ||
mysql: | ||
|
@@ -109,10 +124,10 @@ jobs: | |
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
|
@@ -122,9 +137,79 @@ jobs: | |
python setup.py install | ||
- name: Run coverage | ||
run: coverage run setup.py test | ||
run: coverage run ./test_settings.py | ||
env: | ||
DATABASE_URL: mysql://[email protected]/djangocms_test | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v2 | ||
uses: codecov/codecov-action@v4 | ||
|
||
cms-develop-sqlite: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ['3.11'] | ||
requirements-file: ['dj51_cms41.txt'] | ||
cms-version: [ | ||
'https://github.com/django-cms/django-cms/archive/develop-4.tar.gz' | ||
] | ||
os: [ | ||
ubuntu-20.04, | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r tests/requirements/${{ matrix.requirements-file }} | ||
python -m pip install ${{ matrix.cms-version }} | ||
python setup.py install | ||
- name: Run coverage | ||
run: coverage run ./test_settings.py | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v4 | ||
|
||
sqlite-django-main: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [ "3.11" ] | ||
cms-version: [ | ||
'https://github.com/django-cms/django-cms/archive/develop-4.tar.gz' | ||
] | ||
django-version: [ | ||
'https://github.com/django/django/archive/main.tar.gz' | ||
] | ||
requirements-file: [ | ||
requirements_base.txt, | ||
] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -r tests/requirements/${{ matrix.requirements-file }} | ||
python -m pip install ${{ matrix.cms-version }} ${{ matrix.django-version }} | ||
python setup.py install | ||
- name: Run coverage | ||
run: coverage run ./test_settings.py | ||
|
||
- name: Upload Coverage to Codecov | ||
uses: codecov/codecov-action@v4 |
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,20 @@ | ||
# Read the Docs configuration file | ||
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details | ||
version: 2 | ||
|
||
build: | ||
os: ubuntu-22.04 | ||
tools: | ||
python: "3.11" | ||
|
||
sphinx: | ||
configuration: docs/conf.py | ||
fail_on_warning: false | ||
|
||
formats: | ||
- epub | ||
|
||
python: | ||
install: | ||
- requirements: docs/requirements.txt |
Oops, something went wrong.