Skip to content

Commit d917680

Browse files
authored
Use requirements.txt to install dependencies in unit tests (robotframework#3704)
In the beginning installs `enum34` that's needed with Python 2.7.
1 parent c4e28ce commit d917680

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/unit_tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ jobs:
4949
- name: Run unit tests with coverage
5050
run: |
5151
python -m pip install coverage
52+
python -m pip install -r utest/requirements.txt
5253
python -m coverage run --branch utest/run.py -v
5354
5455
- name: Prepare HTML/XML coverage report
@@ -103,6 +104,7 @@ jobs:
103104
- name: Run unit tests
104105
run: |
105106
${{ matrix.set_codepage }}
107+
jython/bin/jython -m pip install -r utest/requirements.txt
106108
jython/bin/jython utest/run.py -v
107109
108110
test_using_ironpython:
@@ -126,4 +128,5 @@ jobs:
126128
- name: Run unit tests
127129
run: |
128130
chcp 850
131+
ipy -m pip install -r utest/requirements.txt
129132
ipy utest/run.py -v

utest/requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# External Python modules required by unit tests.
2+
3+
enum34; python_version < '3.0'

0 commit comments

Comments
 (0)