Files
astrbot_plugin_tixing/.github/workflows/test.yml
T

42 lines
962 B
YAML

name: Tests
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-24.04
python: "3.10"
- os: ubuntu-24.04
python: "3.12"
- os: windows-latest
python: "3.12"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
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