Skip to content
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 24 additions & 6 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
df -h

- name: Checkout code
uses: actions/checkout@v4
uses: actions/checkout@v4 # uses: actions/checkout@v6

- name: Install uv
uses: astral-sh/setup-uv@v6
Expand All @@ -53,9 +53,9 @@ jobs:
python-version: ${{ matrix.python-version }}

- name: Install the project
run: uv sync --no-cache --all-extras --dev
run: uv sync --all-extras --dev
shell: bash

- name: Install ffmpeg
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
Expand All @@ -67,9 +67,27 @@ jobs:
choco install ffmpeg
fi
shell: bash
- name: Run DLC Live Tests

- name: Run Model Benchmark Test
run: uv run dlc-live-test --nodisplay

- name: Run Functional Benchmark Test
- name: Run DLC Live Unit Tests
run: uv run pytest
# - name: Run DLC Live Unit Tests
# run: uv run pytest --cov=dlclive --cov-report=xml --cov-report=term-missing

# - name: Coverage Report
# uses: codecov/codecov-action@v5
# with:
# files: ./coverage.xml
# flags: ${{ matrix.os }}-py${{ matrix.python-version }}
# name: codecov-${{ matrix.os }}-py${{ matrix.python-version }}
# - name: Add coverage to job summary
# if: always()
# shell: bash
# run: |
# uv run python -m coverage report -m > coverage.txt
# echo "## Coverage (dlclive)" >> "$GITHUB_STEP_SUMMARY"
# echo '```' >> "$GITHUB_STEP_SUMMARY"
# cat coverage.txt >> "$GITHUB_STEP_SUMMARY"
# echo '```' >> "$GITHUB_STEP_SUMMARY"
19 changes: 19 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/asottile/setup-cfg-fmt
rev: v3.2.0
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
hooks:
# Run the formatter.
- id: ruff-format
# Run the linter.
- id: ruff-check
args: [--fix,--unsafe-fixes]
Loading