mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-05-22 19:31:19 +00:00
38 lines
714 B
YAML
38 lines
714 B
YAML
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@v6
|
|
with:
|
|
version: "latest"
|
|
|
|
- name: Test with pytest
|
|
run: |
|
|
uv run pytest --junitxml=report/report.xml
|
|
|
|
- name: Archive Pytest test report
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: SuperTest-test-report
|
|
path: report
|
|
|
|
- name: Upload Pytest report to GitHub
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: Pytest-test-report
|
|
path: report |