Skip to content

Commit cc10e3f

Browse files
authored
Merge pull request #16 from StarmanMartin/main
Moved parser to python
2 parents 53af65c + bb6df22 commit cc10e3f

69 files changed

Lines changed: 1220 additions & 1864 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 11 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,23 @@
1-
name: CI
2-
on:
3-
push:
4-
branches: [main]
5-
pull_request:
6-
branches: [main]
1+
name: Pytest
72

8-
permissions:
9-
contents: write # needed for gh release upload
3+
on: [push]
104

115
jobs:
126
build:
13-
name: Build and Test Package
14-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
158
strategy:
169
matrix:
17-
python-version: ["3.14"]
18-
os: [ubuntu-latest]
19-
10+
python-version: ["3.13", "3.14"]
2011
steps:
21-
- name: Checkout Code
22-
uses: actions/checkout@v4
23-
12+
- uses: actions/checkout@v5
2413
- name: Set up Python ${{ matrix.python-version }}
25-
uses: actions/setup-python@v5
14+
uses: actions/setup-python@v6
2615
with:
2716
python-version: ${{ matrix.python-version }}
28-
29-
- name: Cache Python Dependencies
30-
uses: actions/cache@v4
31-
with:
32-
path: ~/.cache/pip
33-
key: ${{ runner.os }}-pip-${{ matrix.python-version }}
34-
restore-keys: |
35-
${{ runner.os }}-pip-
36-
37-
- name: Install Build Tools
17+
- name: Install dependencies
3818
run: |
39-
python -m pip install --upgrade pip build
40-
python -m pip install pybind11
41-
42-
- name: Lint Code
43-
uses: wearerequired/lint-action@v2.3.0
44-
with:
45-
linters: |
46-
pylint
47-
48-
- name: Build Wheel
49-
run: |
50-
python -m build --wheel
51-
ls -al dist
52-
53-
- name: Upload Built Wheels (artifact)
54-
uses: actions/upload-artifact@v4
55-
with:
56-
name: binaryparser-wheels
57-
path: dist/*.whl
58-
if-no-files-found: error
59-
60-
- name: Ensure release exists
61-
env:
62-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
63-
run: |
64-
gh release view v1.2.0 >/dev/null 2>&1 || gh release create v1.2.0 -t "v1.2.0" -n ""
65-
66-
- name: Upload Release Asset(s)
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
run: |
70-
ls -al dist
71-
gh release upload v1.2.0 dist/*cp314*.whl --clobber
72-
73-
- name: Install Built Package
74-
run: pip install dist/*.whl
75-
76-
- name: Run Tests
77-
# Remove PYTHONPATH so tests import the installed wheel, not files from the repo root
78-
run: |
79-
python -m pip install pytest
80-
pytest tests/
81-
82-
- name: Show Python Environment (Debug)
83-
if: failure()
19+
pip install --upgrade pip
20+
pip install .[dev]
21+
- name: Test the code with pytest
8422
run: |
85-
python --version
86-
pip list
87-
ls -R
23+
pytest .

.github/workflows/pylint.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Pylint
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: ["3.14"]
11+
steps:
12+
- uses: actions/checkout@v5
13+
- name: Set up Python ${{ matrix.python-version }}
14+
uses: actions/setup-python@v6
15+
with:
16+
python-version: ${{ matrix.python-version }}
17+
- name: Install dependencies
18+
run: |
19+
pip install --upgrade pip
20+
pip install .[dev]
21+
pip install pylint
22+
- name: Analysing the code with pylint
23+
run: |
24+
pylint binary_parser

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
.idea/
12
bin/TestDaten
23
.development
34
tests/__pycache__
5+
/BinaryPaser.egg-info/
6+
/build/

.idea/.gitignore

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/BinaryParser.iml

Lines changed: 15 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 17 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)