Skip to content

build(deps): bump actions/checkout from 3 to 4 #29

build(deps): bump actions/checkout from 3 to 4

build(deps): bump actions/checkout from 3 to 4 #29

Workflow file for this run

name: Test
on:
push:
paths:
- keywin/**
- tests/**
- .github/workflows/main.yml
- setup.py
- pyproject.toml
jobs:
type-check:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install the development dependencies
run: pip install -r requirements.txt
- name: Run typechecker
run: pyright
lint:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install the development dependencies
run: pip install -r requirements.txt
- name: Run linter
run: pylint $(git ls-files '*.py')
build:
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.11
cache: pip
- name: Install the development dependencies
run: pip install -r requirements.txt
- name: Build the extension
run: python setup.py build_ext --inplace
- name: Run tests
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; keyboard.press(0x5B, 0x44)"