Skip to content

Commit 10d8bc6

Browse files
committed
Put development dependencies into requirements file
1 parent 485543f commit 10d8bc6

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

.github/workflows/test.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,17 @@ jobs:
2626
- name: Set up Python
2727
uses: actions/setup-python@v6
2828

29-
- name: Install pylint
29+
- name: Install dev dependencies
3030
run: |
31+
python -m venv venv
32+
source venv/bin/activate
3133
python -m pip install --no-cache-dir --upgrade pip wheel setuptools
32-
python -m pip install --no-cache-dir pylint
34+
python -m pip install --no-cache-dir --upgrade -r requirements-dev.txt
3335
3436
- name: Lint with pylint
35-
run: pylint -E 'x86-feature-check.py'
37+
run: |
38+
source venv/bin/activate
39+
pylint -E 'x86-feature-check.py'
3640
3741
typecheck:
3842
name: 'Type Check'
@@ -44,14 +48,19 @@ jobs:
4448
- name: Set up Python
4549
uses: actions/setup-python@v6
4650

47-
- name: Install mypy & pytype
51+
- name: Install dev dependencies
4852
run: |
53+
python -m venv venv
54+
source venv/bin/activate
4955
python -m pip install --no-cache-dir --upgrade pip wheel setuptools
50-
python -m pip install --no-cache-dir mypy
51-
python -m pip install --no-cache-dir pytype
56+
python -m pip install --no-cache-dir --upgrade -r requirements-dev.txt
5257
5358
- name: Check types with mypy
54-
run: mypy --check-untyped-defs 'x86-feature-check.py'
59+
run: |
60+
source venv/bin/activate
61+
mypy --check-untyped-defs 'x86-feature-check.py'
5562
5663
- name: Check types with pytype
57-
run: pytype 'x86-feature-check.py'
64+
run: |
65+
source venv/bin/activate
66+
pytype 'x86-feature-check.py'

requirements-dev.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
mypy==1.19.*
2+
pylint==4.0.*
3+
pytype==2024.10.11

0 commit comments

Comments
 (0)