Skip to content

Commit

Permalink
Added runs with a custom image model to the test matrix for GitHub ac…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
W1ldPo1nter committed Mar 21, 2024
1 parent 9bc334d commit 223af69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,15 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11' ]
python-version: ['3.8', '3.9', '3.10', '3.11']
requirements-file: [
django-3.2.txt,
django-4.0.txt,
django-4.1.txt,
django-4.2.txt,
django-5.0.txt,
]
custom-image-model: [false, true]
exclude:
- requirements-file: django-5.0.txt
python-version: 3.8
Expand All @@ -41,8 +42,10 @@ jobs:
python -m pip install --upgrade pip
pip install -r tests/requirements/${{ matrix.requirements-file }}
python setup.py install
- name: Enable the custom image model
run: echo "CUSTOM_IMAGE=custom_image.Image" >> $GITHUB_ENV
if: ${{ matrix.custom-image-model }}
- name: Run coverage
run: coverage run setup.py test

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v1

0 comments on commit 223af69

Please sign in to comment.