update test code

This commit is contained in:
femisan 2025-03-02 16:09:15 +09:00
parent df1ec04bef
commit 3dc80a40c5

View file

@ -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