Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[run]
branch = True
parallel = True
source = ${COVERAGE_SOURCE_DIR}
omit =
${COVERAGE_SOURCE_DIR}/test_*.py
${COVERAGE_SOURCE_DIR}/m0/cursor_probe.py
${COVERAGE_SOURCE_DIR}/m12_restart_manager_probe.py
patch = subprocess
2 changes: 1 addition & 1 deletion .github/workflows/release-dry-run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ jobs:
syft-version: v1.54.0
upload-artifact: false
upload-release-assets: false
- run: cd dist && shasum -a 256 *.tar.gz *.tgz *-sbom.cdx.json > SHA256SUMS && shasum -a 256 -c SHA256SUMS
- run: cd dist && shasum -a 256 ./*.tar.gz ./*.tgz ./*-sbom.cdx.json > SHA256SUMS && shasum -a 256 -c SHA256SUMS
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
subject-path: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ jobs:
upload-release-assets: false
- run: |
cd dist
shasum -a 256 *.tar.gz *.tgz *-sbom.cdx.json > SHA256SUMS
shasum -a 256 ./*.tar.gz ./*.tgz ./*-sbom.cdx.json > SHA256SUMS
shasum -a 256 -c SHA256SUMS
- uses: actions/attest-build-provenance@4d101475d8b20a2381f78447822ac1eab6504dd8 # v4.2.2
with:
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: SonarCloud

on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, reopened, synchronize]

permissions:
contents: read

jobs:
analyze:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- name: Install coverage.py
run: python3 -m pip install 'coverage>=7.10.3,<8'
- name: Run Python tests with coverage
env:
COVERAGE_SOURCE_DIR: ${{ github.workspace }}/scripts
run: |
coverage run --rcfile=.coveragerc -m unittest discover -s scripts -p 'test_*.py'
coverage combine --rcfile=.coveragerc
coverage report --show-missing
mkdir -p coverage
coverage xml -o coverage/python-coverage.xml
- name: Analyze with SonarCloud
uses: SonarSource/sonarqube-scan-action@d209202bc7d53ff1cc128f7f907dac145c9d6ae9 # v8.3.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >-
-Dsonar.organization=hamzahamidi-1
-Dsonar.projectKey=hamzahamidi_agentdust
-Dsonar.sources=crates,scripts
-Dsonar.tests=crates,scripts
-Dsonar.exclusions=**/tests/**,scripts/test_*.py,scripts/m0/cursor_probe.py,scripts/m12_restart_manager_probe.py
-Dsonar.test.inclusions=**/tests/**,scripts/test_*.py,scripts/m0/cursor_probe.py,scripts/m12_restart_manager_probe.py
-Dsonar.python.coverage.reportPaths=coverage/python-coverage.xml
-Dsonar.qualitygate.wait=true
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ toml = { version = "1.1.2", default-features = false, features = ["std", "serde"
hmac = "0.13.0"
sha2 = { version = "0.11.0", default-features = false }
proptest = { version = "1.11.0", default-features = false, features = ["std"] }
tokio = { version = "1.53.2", features = ["macros", "rt", "io-std", "io-util", "sync", "time"] }
tokio = { version = "1.53.3", features = ["macros", "rt", "io-std", "io-util", "sync", "time"] }
rmcp = { version = "3.5.0", default-features = false, features = ["server", "macros", "transport-io", "elicitation"] }

[profile.release]
Expand Down
Loading
Loading