diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 84772cd..9b55ad1 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -33,6 +33,8 @@ jobs: id-token: write uses: ByronWilliamsCPA/.github/.github/workflows/python-docs.yml@987d517d3c8e4b180f4dd15de6d9575f0df91182 # main with: + # Repo uses hatchling; --no-build cannot install the editable root package + no-build: false python-version: '3.12' docs-directory: 'docs' source-directory: 'src' diff --git a/.github/workflows/fips-compatibility.yml b/.github/workflows/fips-compatibility.yml index be0bc3c..9aa388d 100644 --- a/.github/workflows/fips-compatibility.yml +++ b/.github/workflows/fips-compatibility.yml @@ -56,6 +56,8 @@ jobs: pull-requests: write uses: ByronWilliamsCPA/.github/.github/workflows/python-fips-compatibility.yml@987d517d3c8e4b180f4dd15de6d9575f0df91182 # main with: + # Repo uses hatchling; --no-build cannot install the editable root package + no-build: false strict-mode: ${{ github.event.inputs.strict_mode == 'true' }} include-tests: true fix-hints: true diff --git a/.github/workflows/mutation-testing.yml b/.github/workflows/mutation-testing.yml index 3eaacdc..8029844 100644 --- a/.github/workflows/mutation-testing.yml +++ b/.github/workflows/mutation-testing.yml @@ -41,6 +41,8 @@ jobs: name: Mutation Testing uses: ByronWilliamsCPA/.github/.github/workflows/python-mutation.yml@987d517d3c8e4b180f4dd15de6d9575f0df91182 # main with: + # Repo uses hatchling; --no-build cannot install the editable root package + no-build: false python-version: '3.12' source-directory: 'src' test-directory: 'tests' diff --git a/.github/workflows/python-compatibility.yml b/.github/workflows/python-compatibility.yml index 6ac76c3..36dfda0 100644 --- a/.github/workflows/python-compatibility.yml +++ b/.github/workflows/python-compatibility.yml @@ -36,6 +36,8 @@ jobs: compatibility: uses: ByronWilliamsCPA/.github/.github/workflows/python-compatibility.yml@987d517d3c8e4b180f4dd15de6d9575f0df91182 # main with: + # Repo uses hatchling; --no-build cannot install the editable root package + no-build: false python-versions: '["3.10", "3.11", "3.12", "3.13"]' operating-systems: '["ubuntu-latest"]' include-windows: true diff --git a/.github/workflows/sonarcloud.yml b/.github/workflows/sonarcloud.yml index 8d18c2b..8640eaf 100644 --- a/.github/workflows/sonarcloud.yml +++ b/.github/workflows/sonarcloud.yml @@ -34,7 +34,11 @@ jobs: sonarcloud: uses: ByronWilliamsCPA/.github/.github/workflows/python-sonarcloud.yml@987d517d3c8e4b180f4dd15de6d9575f0df91182 # main with: - sonar-organization: williaby + # Repo uses hatchling; --no-build cannot install the editable root package + no-build: false + # Project ByronWilliamsCPA_python-libs lives in the byronwilliamscpa org + # (org williaby has no such project; the scanner 404s on analysis create) + sonar-organization: byronwilliamscpa sonar-project-key: ByronWilliamsCPA_python-libs python-version: '3.12' source-directory: 'src' diff --git a/CHANGELOG.md b/CHANGELOG.md index b3054f3..066b487 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -57,6 +57,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed +- Passed `no-build: false` to the org reusable workflows that gained a + default-on `--no-build` uv policy (`python-docs`, `python-sonarcloud`, + `python-fips-compatibility`, `python-mutation`, `python-compatibility`); + the default broke editable installation of the hatchling root package + ("marked as `--no-build` but has no binary distribution") on the docs, + SonarCloud, and FIPS runs on `main`. Same fix as `sbom.yml` in #44. +- Replaced the unsupported `packages/*/tests/` wildcard in `sonar.tests` + with the enumerated package test directories; SonarCloud rejects + wildcards in `sonar.sources`/`sonar.tests` and failed the scan. - Restored the required status-check contexts the org rulesets enforce, which had drifted out of sync during the monorepo conversion and were silently blocking every open PR (the missing contexts sat permanently pending): diff --git a/sonar-project.properties b/sonar-project.properties index 325214c..5280e44 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -15,8 +15,13 @@ sonar.projectVersion=0.1.0 # Source directories (comma-separated) sonar.sources=src/,packages/ -# Test directories (comma-separated) -sonar.tests=tests/,packages/*/tests/ +# Test directories (comma-separated; SonarCloud does not support wildcards here) +sonar.tests=\ + tests/,\ + packages/cloudflare-api/tests/,\ + packages/cloudflare-auth/tests/,\ + packages/gcs-utilities/tests/,\ + packages/gemini-image/tests/ # Python version sonar.python.version=3.12