mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-29 05:09:46 +01:00
update test code
This commit is contained in:
parent
df1ec04bef
commit
3dc80a40c5
1 changed files with 25 additions and 21 deletions
46
.github/workflows/unit_test.yml
vendored
46
.github/workflows/unit_test.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest]
|
os: [ubuntu-latest]
|
||||||
python-version: ["3.11"]
|
python-version: ["3.10", "3.11"]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
|
|
@ -47,29 +47,33 @@ jobs:
|
||||||
if [ ${{ matrix.os }} == 'macos-latest' ]; then
|
if [ ${{ matrix.os }} == 'macos-latest' ]; then
|
||||||
brew install ffmpeg opus
|
brew install ffmpeg opus
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# output the version of python and pip
|
|
||||||
- name: PyTest
|
- name: PyTest
|
||||||
run: |
|
run: |
|
||||||
pytest --junit-xml=results/pytest.xml
|
pytest
|
||||||
continue-on-error: true
|
|
||||||
|
# output the version of python and pip
|
||||||
|
# - name: PyTest
|
||||||
|
# run: |
|
||||||
|
# pytest --junit-xml=results/pytest.xml
|
||||||
|
# continue-on-error: true
|
||||||
|
|
||||||
# Show the test results in the Actions tab
|
# # Show the test results in the Actions tab
|
||||||
- name: Upload Unit Test Results
|
# - name: Upload Unit Test Results
|
||||||
if: ${{ always() }}
|
# if: ${{ always() }}
|
||||||
uses: actions/upload-artifact@v4
|
# uses: actions/upload-artifact@v4
|
||||||
with:
|
# with:
|
||||||
name: Unit Test Results ${{ matrix.os }}
|
# name: Unit Test Results ${{ matrix.os }}
|
||||||
path: results/*.xml
|
# path: results/*.xml
|
||||||
|
|
||||||
- name: Download Artifacts
|
# - name: Download Artifacts
|
||||||
if: success() || failure()
|
# if: success() || failure()
|
||||||
uses: actions/download-artifact@v4
|
# uses: actions/download-artifact@v4
|
||||||
with:
|
# with:
|
||||||
path: artifacts
|
# path: artifacts
|
||||||
|
|
||||||
- name: Publish Unit Test Results
|
# - name: Publish Unit Test Results
|
||||||
uses: EnricoMi/publish-unit-test-result-action@v2
|
# uses: EnricoMi/publish-unit-test-result-action@v2
|
||||||
with:
|
# with:
|
||||||
junit_files: artifacts/**/*.xml
|
# junit_files: artifacts/**/*.xml
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue