Skip to content

Commit 49f5ba9

Browse files
committed
simplify ci dependencies setup
1 parent 2e041c2 commit 49f5ba9

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
lines changed

.github/workflows/ci_extra.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ jobs:
2323
- name: Install dependencies
2424
run: |
2525
python -m pip install --upgrade pip
26-
python -m pip install pytest
27-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
26+
pip install -r requirements.txt
2827
2928
- name: Lint with pylint
3029
run: |

.github/workflows/ci_feature.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30-
python -m pip install pytest
31-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
30+
pip install -r requirements.txt
3231
3332
- name: Lint with pylint
3433
run: |

.github/workflows/ci_master.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ jobs:
2626
- name: Install dependencies
2727
run: |
2828
python -m pip install --upgrade pip
29-
python -m pip install pytest
30-
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
pip install -r requirements.txt
3130
3231
- name: Lint with pylint
3332
run: |

pyformlang/indexed_grammar/tests/test_indexed_grammar.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ def test_simple_ig_5(self):
167167
assert not i_grammar.is_empty()
168168

169169
def test_simple_ig_regular_expression(self):
170-
# Test for regular expression functions
170+
""" Test for regular expression functions """
171171

172172
l_rules = []
173173
l_rules.append(ProductionRule("S", "Ci", "end"))
@@ -236,7 +236,7 @@ def test_simple_ig8(self):
236236
assert not i_grammar.is_empty()
237237

238238
def test_simple_ig9(self):
239-
""" {a^n b^n c^n}"""
239+
""" {a^n b^n c^n} """
240240
l_rules = []
241241
l_rules.append(ProductionRule("S", "T", "g"))
242242
l_rules.append(ProductionRule("T", "T", "f"))

0 commit comments

Comments
 (0)