chore: import upstream snapshot with attribution
Lint and Test / lint_test (3.11) (push) Has been cancelled
Lint and Test / lint_test (3.10) (push) Has been cancelled
Lint and Test / lint_test (3.12) (push) Has been cancelled
Publish to PyPI and release / Build distribution (push) Has been cancelled
Codespell / Check for spelling errors (push) Has been cancelled
Publish to PyPI and release / Publish to PyPI (push) Has been cancelled
Publish to PyPI and release / Make release (push) Has been cancelled

This commit is contained in:
wehub-resource-sync
2026-07-13 12:48:44 +08:00
commit f2306a3d11
43 changed files with 3654 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
name: Lint and Test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
lint_test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install ."[dev,test]"
- name: black
run: black sgpt tests --check
- name: isort
run: isort sgpt tests scripts --check-only
- name: ruff
run: ruff sgpt tests scripts
- name: mypy
run: mypy sgpt --exclude llm_functions
- name: tests
run: |
export OPENAI_API_KEY=test_api_key
pytest tests/ -p no:warnings -v -s