Skip to content

Commit ea5f7d6

Browse files
Refactor dev dependencies to separate requirements file (#51)
1 parent cbb45c3 commit ea5f7d6

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ jobs:
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
22-
pip install -r requirements.txt
22+
pip install -r dev-requirements.txt
2323
pip install -r ./compiler_opt/benchmark/requirements.txt
24-
pip install pytest pytype==2022.06.06 pylint==2.14.1
2524
pylint --version
2625
- name: Type check
2726
run: |

dev-requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
-r requirements.txt
2+
pytype==2022.06.06
3+
pylint==2.14.1
4+
pytest==7.1.2

run_tests.sh

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ virtualenv "${VENV_PATH}" -p python3 --system-site-packages
2121
source "${VENV_PATH}"/bin/activate
2222

2323
# Download pre-requisite packages.
24-
pip3 install -r requirements.txt -q
25-
26-
# Get the test harness package.
27-
pip3 install pytest
24+
pip3 install -r dev-requirements.txt -q
2825

2926
PYTHONPATH="${PYTHONPATH}:$(dirname "$0")"
3027

0 commit comments

Comments
 (0)