fix(regex): use rebulk 3+ to have regex module disabled by default

Regex module is now disabled by default in rebulk 3+.

It can be enabled with REBULK_REGEX_ENABLED=1 in your environment.
This commit is contained in:
Rémi Alvergnat
2020-12-23 22:16:25 +01:00
parent fe0696646f
commit 28658b2772
8 changed files with 23 additions and 8 deletions
+15 -1
View File
@@ -10,7 +10,14 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, pypy-3.6 ]
python-version: [ 3.5, 3.6, 3.7, 3.8, 3.9, pypy-3.6, pypy-3.7 ]
regex: [ "0", "1" ]
exclude:
# regex module doesn't play well with pypy and unicode.
- python-version: pypy-3.6
regex: "1"
- python-version: pypy-3.7
regex: "1"
steps:
- name: Setup python ${{ matrix.python-version }}
@@ -31,10 +38,17 @@ jobs:
pip install -e .[dev,test]
pip install coveralls
- name: Install regex
run: |
pip install regex
if: ${{ matrix.regex == '1' }}
- run: pylint guessit
if: matrix.python-version != '3.9'
- run: coverage run --source=guessit setup.py test
env:
REBULK_REGEX_ENABLED: ${{ matrix.regex }}
- run: python setup.py build