mirror of
https://github.com/zoriya/guessit.git
synced 2026-06-03 18:51:09 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user