Skip to content

Fix sentinel detection #128

Fix sentinel detection

Fix sentinel detection #128

Workflow file for this run

name: pylint-windows-tests
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest]
# Don't use pypy on windows since it does not have pywin32 module
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if (Test-Path "windows_tools/requirements.txt") { pip install -r windows_tools/requirements.txt }
# Add additional windows requirements
if (Test-Path "windows_tools/requirements-win.txt") { pip install -r windows_tools/requirements-win.txt }
- name: Lint with Pylint
run: |
# Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist
pip install pylint
# Disable I1101 (c-extension-no-member) and E1101 (no-member) since pywintypes does not advertise members
python -m pylint --disable=C,W,R,I1101,E1101 --max-line-length=127 windows_tools
- name: Lint with Black
# Don't run on python < 3.6 since black does not exist there, run only once
if: ${{ matrix.python-version == '3.9' }}
run: |
pip install black
python -m black --check windows_tools