-
Notifications
You must be signed in to change notification settings - Fork 0
test: add enforced quality gate #2
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
Merged
Changes from all commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
1548aec
fix: scope scorecards push to develop
seonghobae c3708b6
test: add enforced quality gate
seonghobae a80311d
test: cover synthetic helper branches
seonghobae 778e7bc
chore: add automated dependency updates
seonghobae f8ed113
docs: add security reporting policy
seonghobae 989aaee
Merge branch 'feature/quality-gate' into fix/scorecards-default-branch
seonghobae dcbad15
Merge branch 'feature/quality-gate' into chore/dependabot-updates
seonghobae 50d7a04
Merge branch 'feature/quality-gate' into docs/security-policy
seonghobae a27862f
ci: pin workflow dependencies
seonghobae cd1f368
ci: pin workflow actions and broaden PR checks
seonghobae 60bc903
ci: lock uv installs and PR workflow coverage
seonghobae 2cb5f61
ci: add release provenance workflow
seonghobae 58689b1
ci: force github actions to node24
seonghobae 3143f2c
docs: record OpenSSF badge decision
seonghobae 21b02c3
docs: add changelog baseline
seonghobae 8b94be8
ci: pin workflow dependencies (#5)
seonghobae 76487c6
Merge remote-tracking branch 'origin/develop' into feature/quality-gate
seonghobae f58d525
Merge remote-tracking branch 'origin/fix/scorecards-default-branch' i…
seonghobae 5565e84
Merge remote-tracking branch 'origin/chore/dependabot-updates' into f…
seonghobae d51d414
Merge remote-tracking branch 'origin/docs/security-policy' into featu…
seonghobae da3d297
Merge remote-tracking branch 'origin/chore/changelog-baseline' into f…
seonghobae dda6bee
ci: align gh-pages workflow with repo policies
seonghobae fd05d58
Merge remote-tracking branch 'origin/feature/quality-gate' into featu…
seonghobae df0a3f8
test: tighten review-driven regressions
seonghobae efed71d
docs: tighten manual examples
seonghobae 555a53e
test: strengthen review follow-up assertions
seonghobae 2bb5f77
docs: align installation guidance with recommendation
seonghobae 4c16713
ci: add CircleCI quality gate
seonghobae 74ab00f
ci: harden CircleCI uv install
seonghobae be18d06
test: tighten remaining reviewer regressions
seonghobae 566e704
docs: clarify supported Python range without implying 3.10-only use
seonghobae 65b2b19
ci: harden docs deploy path for reproducible Pages builds
seonghobae ab11cce
ci: close remaining automation review gaps
seonghobae bf9aac9
docs: keep dev install examples shell-safe and in sync
seonghobae cd9f18a
ci: enable repo-local CodeRabbit approval workflow
seonghobae 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,36 @@ | ||
| version: 2.1 | ||
|
|
||
| jobs: | ||
| quality-gate: | ||
| docker: | ||
| - image: cimg/python:3.10 | ||
| steps: | ||
| - checkout | ||
| - run: | ||
| name: Install uv | ||
| command: | | ||
| export UV_UNMANAGED_INSTALL=1 | ||
| export UV_NO_MODIFY_PATH=1 | ||
| curl -LsSf -o /tmp/uv-install.sh https://astral.sh/uv/0.11.3/install.sh | ||
| sh /tmp/uv-install.sh | ||
| echo 'export PATH="$HOME/.local/bin:$PATH"' >> "$BASH_ENV" | ||
| - run: | ||
| name: Install project dependencies | ||
| command: | | ||
| source "$BASH_ENV" | ||
| uv sync --locked --extra dev | ||
| - run: | ||
| name: Run warnings-as-errors tests | ||
| command: | | ||
| source "$BASH_ENV" | ||
| PYTHONWARNINGS=error uv run pytest | ||
| - run: | ||
| name: Run coverage quality gate | ||
| command: | | ||
| source "$BASH_ENV" | ||
| uv run pytest --cov=src/newsdom_api --cov-branch --cov-report=term-missing --cov-fail-under=100 | ||
|
|
||
| workflows: | ||
| quality-gate: | ||
| jobs: | ||
| - quality-gate |
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,8 @@ | ||
| language: ko | ||
|
|
||
| reviews: | ||
| profile: chill | ||
| request_changes_workflow: true | ||
| auto_review: | ||
| enabled: true | ||
| auto_incremental_review: true |
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,21 @@ | ||
| version: 2 | ||
| updates: | ||
| - package-ecosystem: github-actions | ||
| directory: "/" | ||
| target-branch: develop | ||
| schedule: | ||
| interval: weekly | ||
| groups: | ||
| github-actions: | ||
| patterns: | ||
| - "*" | ||
|
|
||
| - package-ecosystem: "pip" | ||
| directory: "/" | ||
| target-branch: develop | ||
| schedule: | ||
| interval: weekly | ||
| groups: | ||
| python: | ||
| patterns: | ||
| - "*" |
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
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,38 @@ | ||
| name: quality-gate | ||
|
|
||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main, develop] | ||
| pull_request: | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| quality-gate: | ||
| name: quality-gate | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Setup uv | ||
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e | ||
| with: | ||
| version: '0.11.3' | ||
|
|
||
| - name: Install package | ||
| run: uv sync --locked --extra dev | ||
|
|
||
| - name: Run quality gate | ||
| env: | ||
| PYTHONWARNINGS: error | ||
| run: uv run pytest --cov=src/newsdom_api --cov-branch --cov-report=term-missing --cov-fail-under=100 | ||
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,63 @@ | ||
| name: release | ||
|
|
||
| env: | ||
| FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - 'v*' | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| contents: write | ||
| attestations: write | ||
| id-token: write | ||
|
|
||
| jobs: | ||
| release: | ||
| name: release | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 | ||
|
|
||
| - name: Setup Python | ||
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 | ||
| with: | ||
| python-version: '3.10' | ||
|
|
||
| - name: Setup uv | ||
| uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e | ||
| with: | ||
| version: '0.11.3' | ||
|
|
||
| - name: Build artifacts | ||
| run: uv build | ||
|
|
||
| - name: Generate checksums and manifest | ||
| run: | | ||
| sha256sum dist/* > dist/SHA256SUMS.txt | ||
| python scripts/release/build_release_manifest.py dist dist/release-manifest.json | ||
|
|
||
| - name: Upload release artifacts | ||
| uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 | ||
| with: | ||
| name: release-artifacts | ||
| path: dist/* | ||
|
|
||
| - name: Attest build provenance | ||
| uses: actions/attest-build-provenance@e8998f949152b193b063cb0ec769d69d929409be | ||
| with: | ||
| subject-path: 'dist/*' | ||
|
|
||
| - name: Publish GitHub release | ||
| if: startsWith(github.ref, 'refs/tags/') | ||
| env: | ||
| GH_TOKEN: ${{ github.token }} | ||
| run: | | ||
| if gh release view "${GITHUB_REF_NAME}" >/dev/null 2>&1; then | ||
| gh release upload "${GITHUB_REF_NAME}" dist/* --clobber | ||
| else | ||
| gh release create "${GITHUB_REF_NAME}" dist/* --generate-notes | ||
| fi |
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
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 |
|---|---|---|
|
|
@@ -2,6 +2,7 @@ | |
| __pycache__/ | ||
| *.egg-info/ | ||
| .pytest_cache/ | ||
| .coverage | ||
| .venv/ | ||
| dist/ | ||
| build/ | ||
|
|
||
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.