mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-15 17:30:13 +08:00
* fix: downgrade python-ripgrep version to 0.0.8 in dependencies * fix: update smoke test workflow to support multiple OS and Python versions
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: Smoke Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths-ignore:
|
|
- 'README*.md'
|
|
- 'changelogs/**'
|
|
- 'dashboard/**'
|
|
pull_request:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
smoke-test:
|
|
name: Smoke test (${{ matrix.os }}, Python ${{ matrix.python-version }})
|
|
runs-on: ${{ matrix.os }}
|
|
timeout-minutes: 10
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os:
|
|
- ubuntu-latest
|
|
- macos-latest
|
|
- windows-latest
|
|
python-version:
|
|
- '3.10'
|
|
- '3.11'
|
|
- '3.12'
|
|
- '3.13'
|
|
- '3.14'
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v6
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
cache: 'pip'
|
|
cache-dependency-path: requirements.txt
|
|
|
|
- name: Install uv
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install uv
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
uv pip install --system -r requirements.txt
|
|
timeout-minutes: 15
|
|
|
|
- name: Run smoke tests
|
|
run: |
|
|
python scripts/smoke_startup_check.py
|
|
timeout-minutes: 2
|