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
@ -48,28 +48,32 @@ jobs:
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
# Show the test results in the Actions tab # output the version of python and pip
- name: Upload Unit Test Results # - name: PyTest
if: ${{ always() }} # run: |
uses: actions/upload-artifact@v4 # pytest --junit-xml=results/pytest.xml
with: # continue-on-error: true
name: Unit Test Results ${{ matrix.os }}
path: results/*.xml
- name: Download Artifacts # # Show the test results in the Actions tab
if: success() || failure() # - name: Upload Unit Test Results
uses: actions/download-artifact@v4 # if: ${{ always() }}
with: # uses: actions/upload-artifact@v4
path: artifacts # with:
# name: Unit Test Results ${{ matrix.os }}
# path: results/*.xml
- name: Publish Unit Test Results # - name: Download Artifacts
uses: EnricoMi/publish-unit-test-result-action@v2 # if: success() || failure()
with: # uses: actions/download-artifact@v4
junit_files: artifacts/**/*.xml # with:
# path: artifacts
# - name: Publish Unit Test Results
# uses: EnricoMi/publish-unit-test-result-action@v2
# with:
# junit_files: artifacts/**/*.xml