Skip to content

chore(deps): update dependency pyright to >=1.1.391 (#57) #196

chore(deps): update dependency pyright to >=1.1.391 (#57)

chore(deps): update dependency pyright to >=1.1.391 (#57) #196

Workflow file for this run

name: Test
on:
push:
paths:
- .github/workflows/main.yml
- pyproject.toml
- keywin/**
- tests/**
jobs:
type-check:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup PDM
uses: pdm-project/[email protected]
with:
python-version: '*'
cache: true
- name: Install dependencies
run: pdm install
- name: Run typechecker
run: pdm run pyright
lint:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup PDM
uses: pdm-project/[email protected]
with:
python-version: '*'
cache: true
- name: Install dependencies
run: pdm install
- name: Run linter
run: pdm run pylint --ignore-paths=.venv --recursive=y .
test:
runs-on: windows-latest
strategy:
matrix:
python-version: [3.9, '3.10', 3.11, 3.12, 3.13]
steps:
- name: Checkout repository
uses: actions/[email protected]
- name: Setup PDM
uses: pdm-project/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: true
- name: Install dependencies
run: pdm install
- name: Run tests
run: pdm run pytest
install:
runs-on: windows-latest
steps:
- name: Install KeyWin
run: pip install git+https://github.com/winstxnhdw/KeyWin
- name: Mini smoke test
run: python -c "from keywin import *; keyboard.press(0x5B, 0x44)"