From 0dd5ed6210e02730215f927873119d4f1b8fd37c Mon Sep 17 00:00:00 2001 From: Mark Walker Date: Sun, 12 Nov 2023 14:18:10 +0000 Subject: [PATCH] ci: Test against django main (#195) * ci: Test against django main * fix: requirements path Co-authored-by: Fabian Braun --------- Co-authored-by: Fabian Braun --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1a7bb91b..1bde1392 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -75,3 +75,34 @@ jobs: with: name: html-report path: htmlcov + + unit-tests-django-main: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: ['3.11'] + requirements-file: [ + 'py311-djmain-cms41-default.txt', + 'py311-djmain-cms41-versioning.txt', + ] + os: [ + ubuntu-20.04, + ] + + steps: + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r tests/requirements/${{ matrix.requirements-file }} + python setup.py install + + - name: Run coverage + run: coverage run setup.py test + continue-on-error: true