Skip to content

Commit 7eae8b3

Browse files
Michael HallikMichael Hallik
authored andcommitted
Initial commit: public release of robotframework-xmlvalidator
1 parent d839def commit 7eae8b3

File tree

198 files changed

+10675
-1
lines changed

Some content is hidden

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

198 files changed

+10675
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug Report
3+
about: Report a bug to help improve this project
4+
title: "[BUG] <Short description of the bug>"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
### Description
11+
A clear and concise description of what the bug is.
12+
13+
### Steps to Reproduce
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Run the command '...'
17+
3. See error '...'
18+
19+
### Expected Behavior
20+
What you expected to happen.
21+
22+
### Actual Behavior
23+
What actually happened.
24+
25+
### Screenshots/Logs
26+
If applicable, add screenshots or logs to help explain the problem.
27+
28+
### Environment
29+
- OS: [e.g., Windows 10, macOS 12, Ubuntu 20.04]
30+
- Python Version: [e.g., 3.10]
31+
- Robot Framework Version: [e.g., 6.0]
32+
- Library Version: [e.g., 1.2.3]
33+
34+
### Additional Context
35+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature Request
3+
about: Suggest a new feature or improvement
4+
title: "[Feature] <Short description>"
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
### Is your feature request related to a problem? Please describe.
11+
A clear and concise description of the problem.
12+
13+
### Describe the solution you'd like
14+
A clear and concise description of what you want to happen.
15+
16+
### Describe alternatives you've considered
17+
Any alternative solutions or features you've considered.
18+
19+
### Additional Context
20+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Description
2+
Provide a clear description of the changes introduced in this pull request.
3+
4+
## Related Issue
5+
If this PR fixes an issue, reference it here. Example: Closes #123.
6+
7+
## Type of Change
8+
- [ ] Bug fix
9+
- [ ] New feature
10+
- [ ] Documentation update
11+
- [ ] Other (describe)
12+
13+
## Checklist
14+
- [ ] I have run `pylint` and ensured my code follows the style guide.
15+
- [ ] I have added tests that prove my fix is effective or that my feature works.
16+
- [ ] I have updated the documentation accordingly.
17+
18+
## Additional Notes
19+
Add any additional notes or context here.

.github/workflows/lint.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Lint Code
2+
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
8+
9+
jobs:
10+
lint:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository
15+
uses: actions/checkout@v4
16+
17+
- name: Set Up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: '3.10'
21+
22+
- name: Install Dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install poetry
26+
poetry install
27+
28+
- name: Run Pylint
29+
run: |
30+
poetry run pylint src tests || true
31+
32+
- name: Run Pyright
33+
run: |
34+
poetry run pyright || true

.github/workflows/test.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: Run Unit And Integration Tests
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
env:
13+
PYTHONPATH: ${{ github.workspace }}/src
14+
strategy:
15+
matrix:
16+
python-version: ['3.10']
17+
18+
steps:
19+
- name: Checkout Repository
20+
uses: actions/checkout@v4
21+
22+
- name: Set Up Python
23+
uses: actions/setup-python@v4
24+
with:
25+
python-version: ${{ matrix.python-version }}
26+
27+
- name: Cache Poetry Dependencies
28+
uses: actions/cache@v4
29+
with:
30+
path: ~/.cache/pypoetry
31+
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
32+
restore-keys: |
33+
${{ runner.os }}-poetry-
34+
35+
- name: Install Python Packages
36+
run: |
37+
python -m pip install --upgrade pip
38+
pip install poetry
39+
poetry config virtualenvs.create false
40+
poetry install
41+
42+
- name: Show Poetry Configuration
43+
run: poetry config --list
44+
45+
- name: Add Poetry bin Dir To PATH
46+
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
47+
48+
- name: Log sys.path
49+
run: python -c "import sys; print('\n'.join(sys.path))"
50+
51+
- name: Run Unit Tests
52+
run: |
53+
echo "PYTHONPATH: $PYTHONPATH"
54+
python -m pytest --cov=src --cov-report=xml --cov-report=html --cov-branch --disable-warnings test/
55+
56+
- name: Install pytest Annotation Plugin
57+
run: pip install pytest-github-actions-annotate-failures
58+
59+
- name: Upload Coverage Reports
60+
uses: actions/upload-artifact@v4
61+
with:
62+
name: coverage-reports
63+
path: |
64+
coverage.xml
65+
htmlcov/
66+
67+
- name: Ensure results Dir exists
68+
run: mkdir -p results
69+
70+
- name: Run Integration Tests
71+
continue-on-error: true
72+
run: |
73+
python -m robot --outputdir results --exclude git-exclude test/integration
74+
75+
- name: Upload Test Report
76+
uses: actions/upload-artifact@v4
77+
with:
78+
name: test-results
79+
path: results/

.gitignore

Lines changed: 187 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,187 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# UV
98+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
#uv.lock
102+
103+
# poetry
104+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
105+
# This is especially recommended for binary packages to ensure reproducibility, and is more
106+
# commonly ignored for libraries.
107+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
108+
109+
# pdm
110+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
111+
pdm.lock
112+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
113+
# in version control.
114+
# https://pdm.fming.dev/latest/usage/project/#working-with-version-control
115+
.pdm.toml
116+
.pdm-python
117+
.pdm-build/
118+
119+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
120+
__pypackages__/
121+
122+
# Celery stuff
123+
celerybeat-schedule
124+
celerybeat.pid
125+
126+
# SageMath parsed files
127+
*.sage.py
128+
129+
# Environments
130+
.env
131+
.venv
132+
env/
133+
venv/
134+
ENV/
135+
env.bak/
136+
venv.bak/
137+
138+
# Spyder project settings
139+
.spyderproject
140+
.spyproject
141+
142+
# Rope project settings
143+
.ropeproject
144+
145+
# mkdocs documentation
146+
/site
147+
148+
# mypy
149+
.mypy_cache/
150+
.dmypy.json
151+
dmypy.json
152+
153+
# Pyre type checker
154+
.pyre/
155+
156+
# pytype static type analyzer
157+
.pytype/
158+
159+
# Cython debug symbols
160+
cython_debug/
161+
162+
# PyCharm
163+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
164+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
165+
# and can be added to the global gitignore or merged into this file. For a more nuclear
166+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
167+
#.idea/
168+
169+
# PyPI configuration file
170+
.pypirc
171+
172+
# OS-specific files
173+
.DS_Store
174+
Thumbs.db
175+
176+
# GitHub Actions artifacts (if used locally)
177+
.github/results/
178+
179+
# Project-specific exclusions.
180+
*.csv
181+
log.html
182+
output.xml
183+
report.html
184+
results
185+
PROJECT_TODO_LIST.md
186+
test/_data/unit/*
187+
tools_*.py

0 commit comments

Comments
 (0)