Is there a way to ban some matrix combinations in Github Actions?
The problem is described better on StackOverflow, so I gave link to that. The answers on both platforms are welcome.
Is there a way to ban some matrix combinations in Github Actions?
The problem is described better on StackOverflow, so I gave link to that. The answers on both platforms are welcome.
Example excluding configurations from a matrix
This should work.
matrix:
python-version: [3.5, 3.6, 3.7]
django-version: [1.11, 2.0, 2.1, 2.2]
exclude:
- python-version: 3.7
django-version: 1.11
What if I have to exclude multiple versions, such as excluding:
- py3.7 and dj1.11
- py3.8 and dj1.11
Apparently, python-version: [3.7, 3.8]
will not work.
Edit: Okay okay, I think I can manage it with if
.
Just add another exclude for python3.8
matrix:
python-version: [3.5, 3.6, 3.7, 3.8]
django-version: [1.11, 2.0, 2.1, 2.2]
exclude:
- python-version: 3.7
django-version: 1.11
- python-version: 3.8
django-version: 1.11