Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: fix tests running #85

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ jobs:
pip install ruff
- name: Run Ruff
run: |
ruff djangocms_video
ruff check djangocms_video
ruff check tests
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,17 @@ concurrency:
jobs:
tests:
name: ${{ matrix.database }} Python ${{ matrix.python-version }}
runs-on: ubuntu-22.04
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -50,7 +51,7 @@ jobs:

coverage:
name: Coverage
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v3
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ exclude = [
".venv",
"**/migrations/**",
]
ignore = [
lint.ignore = [
"E501", # line too long
"F403", # 'from module import *' used; unable to detect undefined names
"E701", # multiple statements on one line (colon)
"F401", # module imported but unused
]
line-length = 119
select = [
lint.select = [
"I",
"E",
"F",
Expand Down
18 changes: 6 additions & 12 deletions tests/requirements/compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,20 +33,14 @@
from subprocess import run

CONFIG_MATRIX = [
["python3.8", "Django>=3.2a1,<3.3", "django-cms>=3.8,<3.9", "py38-django32-cms38.txt",],
["python3.8", "Django>=3.2a1,<3.3", "django-cms>=3.9,<3.10", "py38-django32-cms39.txt",],
["python3.8", "Django>=3.2a1,<3.3", "django-cms>=3.10,<3.11", "py38-django32-cms310.txt",],

["python3.9", "Django>=3.2a1,<3.3", "django-cms>=3.8,<3.9", "py39-django32-cms38.txt",],
["python3.9", "Django>=3.2a1,<3.3", "django-cms>=3.9,<3.10", "py39-django32-cms39.txt",],
["python3.9", "Django>=3.2a1,<3.3", "django-cms>=3.10,<3.11", "py39-django32-cms310.txt",],

["python3.10", "Django>=3.2a1,<3.3", "django-cms>=3.8,<3.9", "py310-django32-cms38.txt",],
["python3.10", "Django>=3.2a1,<3.3", "django-cms>=3.9,<3.10", "py310-django32-cms39.txt",],
["python3.10", "Django>=3.2a1,<3.3", "django-cms>=3.10,<3.11", "py310-django32-cms310.txt",],
["python3.9", "Django>=4.2a1,<4.3", "django-cms>=3.11,<4.0", "py39-django42-cms311.txt",],
["python3.10", "Django>=4.2a1,<5.0", "django-cms>=3.11,<4.0", "py310-django42-cms311.txt",],
["python3.11", "Django>=4.2a1,<5.0", "django-cms>=3.11,<4.0", "py311-django42-cms311.txt", ],
["python3.12", "Django>=4.2a1,<5.0", "django-cms>=3.11,<4.0", "py312-django42-cms311.txt", ],

["python3.11", "Django>=4.2a1,<5.0", "django-cms>=3.11,<4.0", "py311-django42-cms311.txt",],
["python3.11", "Django>=5.0,<5.1", "django-cms>=3.11,<4.0", "py311-django50-cms311.txt",],
["python3.12", "Django>=5.0,<5.1", "django-cms>=3.11,<4.0", "py312-django50-cms311.txt",],
["python3.13", "Django>=5.0,<5.1", "django-cms>=3.11,<4.0", "py313-django50-cms311.txt",],
]

if __name__ == "__main__":
Expand Down
164 changes: 0 additions & 164 deletions tests/requirements/py310-django32-cms310.txt

This file was deleted.

Loading
Loading