Skip to content

Commit 64c2c49

Browse files
authored
Merge pull request #86 from Legilibre/ci
2 parents 3adf4de + 362096d commit 64c2c49

File tree

4 files changed

+38
-36
lines changed

4 files changed

+38
-36
lines changed

.github/workflows/main.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: CI
2+
on:
3+
# Trigger the workflow on push or pull request events but only for the master branch
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
# Allow running this workflow manually from the Actions tab
9+
workflow_dispatch:
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Install required system packages
16+
run: sudo apt-get install -y libarchive13 hunspell hunspell-fr libhunspell-dev
17+
- name: Install Python 3.9
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: '3.9'
21+
- name: Install Python 3.8
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: '3.8'
25+
- name: Install Python 3.7
26+
uses: actions/setup-python@v2
27+
with:
28+
python-version: '3.7'
29+
- name: Cache the .tox directory to speed things up
30+
uses: actions/[email protected]
31+
with:
32+
path: .tox
33+
key: test-${{ runner.os }}-${{ hashFiles('requirements*.txt') }}
34+
- name: Install tox
35+
run: pip install tox
36+
- name: Run the tests
37+
run: tox -e py37,py38,py39

.travis.yml

-30
This file was deleted.

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Une fois ces dépendances système installées, vous pouvez cloner le dépôt et
2828
python -m ensurepip
2929
pip install -r requirements.txt
3030

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

3434
legi.py peut être utilisé comme dépendance d'un autre projet, il est disponible

legi/utils.py

-5
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
from unicodedata import combining, decomposition, normalize
88

99

10-
if not hasattr(re, 'Match'):
11-
# For Python 3.6
12-
re.Match = type(re.compile('').match(''))
13-
14-
1510
IGNORE = object()
1611
NIL = object()
1712
ROOT = os.path.dirname(__file__) + '/'

0 commit comments

Comments
 (0)