fix: 修復配置合并的問題,但是本次修復并不充分,仍然需要繼續測試和修復 #180
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
push: | |
branches: | |
- "dev" | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: [ "3.9", "3.10", "3.11","3.12"] | |
steps: | |
- name: check out my code | |
uses: actions/checkout@v4 | |
with: | |
ref: "dev" | |
- name: install python | |
uses: actions/setup-python@v4.7.1 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: install depends | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r ./ictye-live-dm/requirements.txt | |
pip install ./ictye-live-dm/ | |
pip install pytest pytest-cov pytest-asyncio pytest-aiohttp PyQt5 | |
- name: test | |
run: | | |
pytest ./ictye-live-dm --junitxml=junit/test-results-${{ matrix.python-version }}.xml --cov --cov-report=html | |
- name: upload_results | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pytest-results-${{ matrix.python-version }} | |
path: | | |
junit/test-results-${{ matrix.python-version }}.xml | |
htmlcov/* | |
# Use always() to always run this step to publish test results when there are test failures | |
if: ${{ always() }} |