feat: use pyproject.toml and uv publish pkg #5
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: lint | |
on: [push, pull_request] | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 # 拉取最新代码 | |
- name: Set up python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10.12" # 选择您的 Python 版本 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v3 | |
- name: Lint | |
run: | | |
uv sync | |
uv run ruff check | |
- name: Test | |
run: | | |
uv run pytest -s tests/ | |
uv build | |
- name: Build | |
run: | | |
uv build |