Skip to content

40

40 #23

Workflow file for this run

name: Unit Tests
on:
push:
branches:
- master
- main
pull_request:
jobs:
pytest:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-24.04
strategy:
max-parallel: 4
matrix:
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get install -y libxtst-dev xvfb
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Test with pytest
run: |
xvfb-run --auto-servernum pytest
black:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
with:
options: "--check --diff"
src: "./sikuli"
ruff:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Lint with Ruff
run: ruff check --output-format=github sikuli
mypy:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e '.[dev]'
- name: Lint with MyPy
run: mypy