42 lines
964 B
YAML
42 lines
964 B
YAML
name: Tests
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
include:
|
|
- os: ubuntu-latest
|
|
python: "3.10"
|
|
- os: ubuntu-latest
|
|
python: "3.12"
|
|
- os: windows-latest
|
|
python: "3.12"
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python }}
|
|
cache: pip
|
|
cache-dependency-path: |
|
|
requirements.txt
|
|
requirements-dev.txt
|
|
- name: Install dependencies
|
|
run: python -m pip install -r requirements.txt -r requirements-dev.txt
|
|
- name: Lint
|
|
run: ruff check .
|
|
- name: Check formatting
|
|
run: ruff format --check .
|
|
- name: Test
|
|
run: python -m pytest -q
|
|
- name: Build plugin ZIP
|
|
run: python tools/package.py
|