Skip to content

Commit

Permalink
Merge pull request #86 from Legilibre/ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Changaco authored Nov 25, 2021
2 parents 3adf4de + 362096d commit 64c2c49
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 36 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: CI
on:
# Trigger the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
pull_request:
branches: [ master ]
# Allow running this workflow manually from the Actions tab
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install required system packages
run: sudo apt-get install -y libarchive13 hunspell hunspell-fr libhunspell-dev
- name: Install Python 3.9
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install Python 3.8
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Install Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.7'
- name: Cache the .tox directory to speed things up
uses: actions/[email protected]
with:
path: .tox
key: test-${{ runner.os }}-${{ hashFiles('requirements*.txt') }}
- name: Install tox
run: pip install tox
- name: Run the tests
run: tox -e py37,py38,py39
30 changes: 0 additions & 30 deletions .travis.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Une fois ces dépendances système installées, vous pouvez cloner le dépôt et
python -m ensurepip
pip install -r requirements.txt

legi.py et les modules dont il dépend sont compatibles avec python 3.6, 3.7 et 3.8,
legi.py et les modules dont il dépend sont compatibles avec python 3.7, 3.8 et 3.9,
les versions antérieurs de python peuvent générer des erreurs.

legi.py peut être utilisé comme dépendance d'un autre projet, il est disponible
Expand Down
5 changes: 0 additions & 5 deletions legi/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
from unicodedata import combining, decomposition, normalize


if not hasattr(re, 'Match'):
# For Python 3.6
re.Match = type(re.compile('').match(''))


IGNORE = object()
NIL = object()
ROOT = os.path.dirname(__file__) + '/'
Expand Down

0 comments on commit 64c2c49

Please sign in to comment.