diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 66e9924..22787cf 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ "3.9", "3.10", "3.11","3.12"] + python-version: [ "3.10", "3.11","3.12"] steps: - name: check out my code diff --git a/.github/workflows/test_linux.yaml b/.github/workflows/test_linux.yaml new file mode 100644 index 0000000..80a21a8 --- /dev/null +++ b/.github/workflows/test_linux.yaml @@ -0,0 +1,45 @@ +name: test_linux +on: + workflow_dispatch: + pull_request: + push: + +jobs: + test_linux: + strategy: + fail-fast: false + matrix: + python-version: [ "3.10", "3.11","3.12" ] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + 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() }} + + diff --git a/.gitignore b/.gitignore index 23ccfbe..84e7c26 100644 --- a/.gitignore +++ b/.gitignore @@ -4,7 +4,7 @@ __pycache__/ .hintrc/ .vscode/ build/ -dist/ +dist/* data/ ictye-live-dm/src/ictye_live_dm/logs /.hintrc diff --git a/.run/Ictye live dm plugin api.run.xml b/.run/Ictye live dm plugin api.run.xml new file mode 100644 index 0000000..12a6076 --- /dev/null +++ b/.run/Ictye live dm plugin api.run.xml @@ -0,0 +1,15 @@ + + + + \ No newline at end of file diff --git a/.run/gen GUI.run.xml b/.run/gen GUI.run.xml new file mode 100644 index 0000000..9ad353c --- /dev/null +++ b/.run/gen GUI.run.xml @@ -0,0 +1,17 @@ + + + + \ No newline at end of file diff --git a/.run/ictye live dm gui.run.xml b/.run/ictye live dm gui.run.xml index f747b9c..c620ef8 100644 --- a/.run/ictye live dm gui.run.xml +++ b/.run/ictye live dm gui.run.xml @@ -20,6 +20,8 @@