-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #24 from chenmozhijin/dev
v0.8.0
- Loading branch information
Showing
141 changed files
with
17,246 additions
and
6,735 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: test LDDC | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- dev | ||
paths: | ||
- "**.py" | ||
- ".github/workflows/test.yml" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|
||
test: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [macos-13, windows-latest] | ||
arch: [x64] | ||
include: | ||
- os: macos-latest | ||
arch: arm64 | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
architecture: ${{ matrix.arch }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install -Ur requirements-tests.txt | ||
pip install . | ||
- name: Install FFmpeg(Linux) | ||
if: runner.os == 'Linux' | ||
run: sudo apt-get update && sudo apt-get install -y ffmpeg | ||
|
||
- name: Install FFmpeg(Windows) | ||
if: runner.os == 'Windows' | ||
run: choco install ffmpeg -y | ||
|
||
- name: Install FFmpeg(Mac) | ||
if: runner.os == 'macOS' | ||
run: brew install ffmpeg | ||
|
||
- name: Install GUI dependencies | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y qtbase5-dev libqt5gui5 libqt5widgets5 xvfb | ||
- name: Run tests | ||
run: | | ||
pytest --cov=LDDC --cov-report=xml --cov-report=html --cov-report=term --disable-warnings | ||
- name: Save test artifacts | ||
if: always() | ||
run: | | ||
mkdir -p tests/artifacts/reports | ||
cp -r htmlcov ./tests/artifacts/reports | ||
cp coverage.xml ./tests/artifacts/reports | ||
- name: Upload artifacts | ||
uses: actions/upload-artifact@v4 | ||
if: always() | ||
with: | ||
name: artifacts-${{ matrix.os }} | ||
path: tests/artifacts |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -142,4 +142,6 @@ test/ | |
plugins/ | ||
Logs/ | ||
|
||
update_ts.ps1 | ||
update_ts.ps1 | ||
|
||
tests/artifacts/ |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# SPDX-FileCopyrightText: Copyright (C) 2024 沉默の金 <cmzj@cmzj.org> | ||
# SPDX-License-Identifier: GPL-3.0-only | ||
from .utils.version import __version__ # noqa: F401 | ||
|
||
__author__ = "沉默の金" | ||
__license__ = "GPL-3.0-only" | ||
__copyright__ = "Copyright (C) 2024 沉默の金 <cmzj@cmzj.org>" |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# SPDX-FileCopyrightText: Copyright (C) 2024 沉默の金 <cmzj@cmzj.org> | ||
# SPDX-License-Identifier: GPL-3.0-only |
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
Oops, something went wrong.