-
Notifications
You must be signed in to change notification settings - Fork 0
feat: Add language customization and expanded test coverage #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
b5eea55
feat: docs, tests and some tiny improvements
JarbasAl 5b8aa9b
feat: docs, tests and some tiny improvements
JarbasAl 1650e6a
feat: docs, tests and some tiny improvements
JarbasAl c41c843
feat: add multilingual testing support and fix from_message bugs
JarbasAl 296a895
chore: tests
JarbasAl 32221ff
chore: tests
JarbasAl 6f466d2
chore: tests
JarbasAl d907144
coderabbitt
JarbasAl d8cef52
tests
JarbasAl b9ee7b7
tests
JarbasAl a593760
update
JarbasAl ff8ee73
coderrabbit
JarbasAl 528bbf5
coderrabbit
JarbasAl 6be1d98
.
JarbasAl 38e9295
ci: update workflows for gh-automations refactor
JarbasAl 34daa4c
.
JarbasAl 80f816d
chore: remove unused package_name/version_file inputs from build_tests
JarbasAl 778b49f
fix: standardize CI workflows for release readiness
JarbasAl b24f359
gitignore
JarbasAl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Run Build Tests | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| build_tests: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/build-tests.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' | ||
| install_extras: "pydantic" | ||
| test_path: "test/unittests/" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| name: Downstream Check | ||
| on: | ||
| push: | ||
| branches: [dev, master] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| downstream_check: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/downstream-check.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| package_name: "ovoscope" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Run License Tests | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| license_tests: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/license-check.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| install_extras: '[pydantic]' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| name: Run PipAudit | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| - dev | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| pip_audit: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/pip-audit.yml@dev | ||
| secrets: inherit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| name: Release Preview | ||
| on: | ||
| pull_request: | ||
| branches: [dev] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| release_preview: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/release-preview.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| package_name: "ovoscope" | ||
| version_file: "ovoscope/version.py" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,108 +1,32 @@ | ||
| name: Release Alpha and Propose Stable | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| pull_request: | ||
| types: [closed] | ||
| branches: [dev] | ||
|
|
||
| jobs: | ||
| build_tests: | ||
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/build-tests.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| python_versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]' | ||
| install_extras: "pydantic" | ||
| test_path: "test/unittests/" | ||
|
|
||
| publish_alpha: | ||
| if: github.event.pull_request.merged == true | ||
| uses: TigreGotico/gh-automations/.github/workflows/publish-alpha.yml@master | ||
| needs: build_tests | ||
| if: github.event.pull_request.merged == true || github.event_name == 'workflow_dispatch' | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/publish-alpha.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| branch: 'dev' | ||
| version_file: 'ovoscope/version.py' | ||
| setup_py: 'setup.py' | ||
| update_changelog: true | ||
| publish_prerelease: true | ||
| propose_release: true | ||
| changelog_max_issues: 100 | ||
|
|
||
| notify: | ||
| if: github.event.pull_request.merged == true | ||
| needs: publish_alpha | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Send message to Matrix bots channel | ||
| id: matrix-chat-message | ||
| uses: fadenb/matrix-chat-message@v0.0.6 | ||
| with: | ||
| homeserver: 'matrix.org' | ||
| token: ${{ secrets.MATRIX_TOKEN }} | ||
| channel: '!WjxEKjjINpyBRPFgxl:krbel.duckdns.org' | ||
| message: | | ||
| new ${{ github.event.repository.name }} PR merged! https://github.com/${{ github.repository }}/pull/${{ github.event.number }} | ||
|
|
||
| publish_pypi: | ||
| needs: publish_alpha | ||
| if: success() # Ensure this job only runs if the previous job succeeds | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| ref: dev | ||
| fetch-depth: 0 # otherwise, there would be errors pushing refs to the destination repository. | ||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.11' | ||
| - name: Install Build Tools | ||
| run: | | ||
| python -m pip install build wheel | ||
| - name: version | ||
| run: echo "::set-output name=version::$(python setup.py --version)" | ||
| id: version | ||
| - name: Build Distribution Packages | ||
| run: | | ||
| python setup.py sdist bdist_wheel | ||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@master | ||
| with: | ||
| password: ${{secrets.PYPI_TOKEN}} | ||
|
|
||
|
|
||
| propose_release: | ||
| needs: publish_alpha | ||
| if: success() # Ensure this job only runs if the previous job succeeds | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout dev branch | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| ref: dev | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Get version from setup.py | ||
| id: get_version | ||
| run: | | ||
| VERSION=$(python setup.py --version) | ||
| echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
|
|
||
| - name: Create and push new branch | ||
| run: | | ||
| git checkout -b release-${{ env.VERSION }} | ||
| git push origin release-${{ env.VERSION }} | ||
|
|
||
| - name: Open Pull Request from dev to master | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| run: | | ||
| # Variables | ||
| BRANCH_NAME="release-${{ env.VERSION }}" | ||
| BASE_BRANCH="master" | ||
| HEAD_BRANCH="release-${{ env.VERSION }}" | ||
| PR_TITLE="Release ${{ env.VERSION }}" | ||
| PR_BODY="Human review requested!" | ||
|
|
||
| # Create a PR using GitHub API | ||
| curl -X POST \ | ||
| -H "Accept: application/vnd.github+json" \ | ||
| -H "Authorization: token $GITHUB_TOKEN" \ | ||
| -d "{\"title\":\"$PR_TITLE\",\"body\":\"$PR_BODY\",\"head\":\"$HEAD_BRANCH\",\"base\":\"$BASE_BRANCH\"}" \ | ||
| https://api.github.com/repos/${{ github.repository }}/pulls | ||
|
|
||
| publish_pypi: true | ||
| notify_matrix: true | ||
|
JarbasAl marked this conversation as resolved.
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| name: Repo Health | ||
| on: | ||
| pull_request: | ||
| branches: [dev] | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| repo_health: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/repo-health.yml@dev | ||
|
JarbasAl marked this conversation as resolved.
|
||
| secrets: inherit | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Run Tests | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - dev | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| unit_tests: | ||
| uses: OpenVoiceOS/gh-automations/.github/workflows/coverage.yml@dev | ||
| secrets: inherit | ||
| with: | ||
| python_version: "3.14" | ||
| install_extras: "ovoscope[pydantic]" | ||
| test_path: "test/unittests/" | ||
| coverage_source: "ovoscope" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,43 @@ | ||
| # Byte-compiled / optimized / DLL files | ||
| __pycache__/ | ||
| *.py[cod] | ||
| *$py.class | ||
|
|
||
| # C extensions | ||
| *.so | ||
|
|
||
| # Distribution / packaging | ||
| /build/ | ||
| /dist/ | ||
| /local_util/ | ||
| /node_modules/ | ||
| /ovoscope.egg-info/ | ||
| /.eggs/ | ||
| *.egg-info/ | ||
| *.egg | ||
| MANIFEST | ||
|
|
||
| # Virtual Environments | ||
| .venv/ | ||
| venv/ | ||
| ENV/ | ||
| env/ | ||
|
|
||
| # IDEs | ||
| .idea/ | ||
| .vscode/ | ||
| *.swp | ||
| *.swo | ||
|
|
||
| # Testing / coverage | ||
| .pytest_cache/ | ||
| .coverage | ||
| htmlcov/ | ||
| nosetests.xml | ||
| coverage.xml | ||
| *.cover | ||
| .hypothesis/ | ||
|
|
||
| # Local configuration | ||
| .env | ||
| .python-version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,7 @@ | ||
| # Changelog | ||
|
|
||
| ## [Unreleased](https://github.com/TigreGotico/ovoscope/tree/HEAD) | ||
|
|
||
| [Full Changelog](https://github.com/TigreGotico/ovoscope/compare/0.7.2...HEAD) | ||
|
|
||
| **Merged pull requests:** | ||
|
|
||
| - feat: docs, tests and some tiny improvements [\#30](https://github.com/TigreGotico/ovoscope/pull/30) ([JarbasAl](https://github.com/JarbasAl)) | ||
| - chore: Configure Renovate [\#29](https://github.com/TigreGotico/ovoscope/pull/29) ([renovate[bot]](https://github.com/apps/renovate)) | ||
|
|
||
|
|
||
|
|
||
| \* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)* |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.