@@ -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'
0 commit comments