mirror of
https://github.com/suyiiyii/nonebot-bison.git
synced 2025-06-02 09:26:12 +08:00
62 lines
1.2 KiB
YAML
62 lines
1.2 KiB
YAML
name: pydantic1-compat-test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
- next
|
|
paths:
|
|
- admin-frontend/**
|
|
- docker/**
|
|
- nonebot_bison/**
|
|
- tests/**
|
|
- pyproject.toml
|
|
- uv.lock
|
|
- docker.env.prod
|
|
- .github/**
|
|
pull_request:
|
|
paths:
|
|
- admin-frontend/**
|
|
- docker/**
|
|
- nonebot_bison/**
|
|
- tests/**
|
|
- pyproject.toml
|
|
- uv.lock
|
|
- docker.env.prod
|
|
- .github/**
|
|
types:
|
|
- opened
|
|
- synchronize
|
|
- reopened
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
test:
|
|
name: pydantic1 test
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
python-version: ["3.11"]
|
|
os: [ubuntu-latest]
|
|
fail-fast: false
|
|
env:
|
|
OS: ${{ matrix.os }}
|
|
PYTHON_VERSION: ${{ matrix.python-version }}
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup Python environment
|
|
uses: ./.github/actions/setup-python
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install prerequisites
|
|
run: uv add pydantic==1.10 && uv sync --frozen
|
|
|
|
- name: Run Pytest
|
|
run: uv run pytest -k 'not compare and not render' -n auto
|