mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-10-04 18:46:30 +00:00
⚡️ Refactor LiteyukiBot structure and add configuration loading
- Updated .gitignore to include .pytest_cache - Replaced FastAPI with Daemon in main.py for bot execution - Enhanced pyproject.toml with new dependencies and dev group - Added iniconfig package for pytest configuration - Created initial structure for liteyukibot with context management - Implemented configuration loading functions for YAML, JSON, and TOML - Added tests for configuration loading with temporary files - Set up GitHub Actions for pytest testing on push and pull requests
This commit is contained in:
38
.github/workflows/pytest.yaml
vendored
Normal file
38
.github/workflows/pytest.yaml
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
name: Pytest API Testing
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ "v7" ]
|
||||
pull_request:
|
||||
branches: [ "v7" ]
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
Pytes-API-Testing:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Setup uv
|
||||
uses: astral-sh/setup-uv@v5
|
||||
with:
|
||||
version: "latest"
|
||||
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
uv run pytest --junitxml=report/report.xml
|
||||
|
||||
- name: Archive Pytest test report
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: SuperTest-test-report
|
||||
path: report
|
||||
|
||||
- name: Upload Pytest report to GitHub
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: Pytest-test-report
|
||||
path: report
|
Reference in New Issue
Block a user