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

Update project setup #137

Merged
merged 1 commit into from
Aug 22, 2023
Merged
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
18 changes: 9 additions & 9 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,16 @@ on:

jobs:
test:
name: 'Python ${{ matrix.python-version }} Django ${{ matrix.django }}'
name: 'Python ${{ matrix.python-version }} Django ${{ matrix.django-version }}'
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