Skip to content

Commit

Permalink
Update project setup
Browse files Browse the repository at this point in the history
e.g.: Remove Django 3.2 from test matrix
  • Loading branch information
Jens Diemer committed Aug 22, 2023
1 parent 8a1b95f commit c454e17
Show file tree
Hide file tree
Showing 6 changed files with 620 additions and 477 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,14 @@ jobs:
test:
name: 'Python ${{ matrix.python-version }} Django ${{ matrix.django }}'
runs-on: ubuntu-latest
env:
PYTHONUNBUFFERED: 1
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.10", "3.9"]
django: ["4.2", "4.1", "3.2"]
django-version: ["4.2", "4.1"]
env:
PYTHONUNBUFFERED: 1
PYTHONWARNINGS: always
steps:
- name: Checkout
run: |
Expand Down Expand Up @@ -53,9 +54,8 @@ jobs:
- name: 'Install Browsers for Playwright tests'
run: make playwright-install

- name: 'Run tests with Python ${{ matrix.python-version }} Django ${{ matrix.django }}'
run: poetry run tox -e python-django${{ matrix.django }}
- name: 'Run tests with Python ${{ matrix.python-version }} Django ${{ matrix.django-version }}'
run: poetry run tox -e $(echo py${{ matrix.python-version }}-django${{ matrix.django-version }} | tr -d .)

- name: Upload coverage
uses: codecov/codecov-action@v3
# https://github.com/marketplace/actions/codecov
- name: 'Upload coverage report'
run: bash <(curl -s https://codecov.io/bash)
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
!.editorconfig
!.flake8
!.gitignore
!.isort.cfg
!/.travis.yml
!/.style.yapf
!.coveralls.yml
!.gitkeep

# from test projects:
/bx_django_utils_tests/static/
Expand All @@ -30,5 +27,5 @@ sdist/
.installed.cfg
*.egg
/publish.log
coverage.xml
/coverage.*

2 changes: 1 addition & 1 deletion bx_django_utils_tests/test_project/publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from pathlib import Path

from cli_base.cli_tools.subprocess_utils import verbose_check_call
from manageprojects.utilities.publish import publish_package
from manageprojects.utilities.subprocess_utils import verbose_check_call

import bx_django_utils

Expand Down
2 changes: 1 addition & 1 deletion bx_django_utils_tests/tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


# Hacky way to display more "assert"-Context in failing tests:
unittest.util._MAX_LENGTH = os.environ.get('UNITTEST_MAX_LENGTH', 200)
unittest.util._MAX_LENGTH = os.environ.get('UNITTEST_MAX_LENGTH', 300)


PACKAGE_ROOT = Path(bx_django_utils.__file__).parent.parent
Loading

0 comments on commit c454e17

Please sign in to comment.