Skip to content

Commit

Permalink
add test kit
Browse files Browse the repository at this point in the history
  • Loading branch information
Puiching-Memory committed Jul 7, 2024
1 parent d83f5af commit c771b5a
Show file tree
Hide file tree
Showing 9 changed files with 37 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
os: [windows-latest] # Optional: build on multiple platforms

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: windows-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ __pycache__/
dist/
*.egg-info
trashcan/
*.whl
*.whl
.coverage
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<a href=""><img src="https://img.shields.io/github/downloads/Puiching-Memory/pylibde265/total" alt="downloads:all"></a>
<a href=""><img src="https://img.shields.io/github/downloads/Puiching-Memory/pylibde265/latest/total" alt="downloads:latest_verson"></a>
<a href=""><img src="https://img.shields.io/pypi/dm/pylibde265" alt="downloads-dm:pypi"></a>
<a href=""><img src="https://img.shields.io/pypi/v/pylibde265" alt="version:pypi"></a>
<a href=""><img src="https://img.shields.io/github/directory-file-count/Puiching-Memory/pylibde265" alt="count:file/dir"></a>
<a href=""><img src="https://img.shields.io/github/repo-size/Puiching-Memory/pylibde265" alt="count:size"></a>
</div>
Expand Down Expand Up @@ -70,7 +71,6 @@ with open(vedio_path,'rb') as data:

代码解释:


# 深入了解

* 在线文档(待建)
Expand Down Expand Up @@ -130,6 +130,13 @@ scipy >= 1.14.0
numpy >= 2.0.0
```

环境需求-测试

```
coverage >= 7.5.4
pytest >= 8.2.2
```

# 常见问题

| 问题Q | 回答A | 日期 | 版本 |
Expand Down
2 changes: 0 additions & 2 deletions src/pylibde265/version.py

This file was deleted.

10 changes: 10 additions & 0 deletions test/cover.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import os

if __name__ == "__main__":
command = 'coverage run -m pytest'

os.system(command=command)

command = 'coverage report -m'

os.system(command=command)
8 changes: 8 additions & 0 deletions test/test_fun.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import pylibde265.pyde265

def test_version():
assert pylibde265.pyde265.get_version()

def test_decode():
pass

7 changes: 7 additions & 0 deletions test/tester.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import os


if __name__ == "__main__":
command = 'pytest'

os.system(command=command)
File renamed without changes.

0 comments on commit c771b5a

Please sign in to comment.