Skip to content

Commit 1fe9c51

Browse files
authored
Merge pull request #17 from quarkslab/add_tests
Add regression tests and testing CI
2 parents dcb62b3 + 579836b commit 1fe9c51

36 files changed

+175
-0
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tests/data/** filter=lfs diff=lfs merge=lfs -text

.github/workflows/testing.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Testing
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
testing:
11+
name: Run tests
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
lfs: true
18+
- uses: actions/setup-python@v5
19+
with:
20+
python-version: |
21+
3.11
22+
3.12
23+
3.10
24+
25+
- name: Install dependencies
26+
run: pip install .[dev]
27+
28+
- name: Running pytest
29+
run: tox run -- -s
30+
31+
- name: Generate coverage
32+
run: tox run -e py310-coverage -- -s --cov-report=term
33+
34+
- uses: actions/upload-artifact@v4
35+
with:
36+
name: coverage
37+
path: ./htmlcov

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ build/
88
dist/
99
*.egg-info/
1010
/venv/
11+
.tox/
12+
.coverage
13+
htmlcov/

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ Documentation = "https://quarkslab.github.io/diffing-portal/exporter/binexport.h
3434
[project.scripts]
3535
binexporter = 'binexport.__main__:main'
3636

37+
[project.optional-dependencies]
38+
dev = ["tox"]
39+
3740
[tool.black]
3841
line-length = 100
3942
target-version = ['py310']
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:df5b9cc6f8c82ba241094e4be6171cb54a6fe031f58c458e5d066843c385ed45
3+
size 3282130
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:c49739d075290a8bb4d59915afe9cf04a7a55dce8ab05c8bf047babcd5733db7
3+
size 2591355
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:8f2ce6243be93216cb7bac71b3f5bd58969feeee293a72fda94915d114ab0886
3+
size 124714
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:c8b60ee9d440e71de8f09cb66a3a4cd898e67b308cad3cd753d0ba796f02f542
3+
size 134033
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:f2ca343df07370aa8b1f5b8679ff9f85b508fbf0a1954e910e907194b841c53b
3+
size 7855967
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version https://git-lfs.github.com/spec/v1
2+
oid sha256:abd8e1298f8563a75467920b7a64877c838de38cc34708c1bd17b19ec3ce2633
3+
size 108656

0 commit comments

Comments
 (0)