⬆️ Bump anaconda from 2026.06 to 2026.07 #269
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
| # Review Translations — Quality check on translation PRs | |
| # When a PR is opened/updated that carries the 'action-translation' label, | |
| # this workflow runs a quality review and posts a comment. | |
| # | |
| # Mirrors the upstream template in action-translation | |
| # docs/user/tutorials/connect-existing.md — keep it in step with that. | |
| name: Review Translations | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, labeled, reopened] | |
| jobs: | |
| review: | |
| # Ignore `labeled` events for every other label: a sync adds its labels in a single | |
| # addLabels call, but GitHub emits one `labeled` event per label, and each would | |
| # otherwise start a full (billed) review of the same diff. | |
| if: > | |
| contains(github.event.pull_request.labels.*.name, 'action-translation') && | |
| (github.event.action != 'labeled' || github.event.label.name == 'action-translation') | |
| runs-on: ubuntu-latest | |
| # v0.17.0's review dedupe deletes superseded comments, which needs pull-requests: write. | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| # One review per PR — supersede an in-flight review instead of running both. | |
| # Job-level (not workflow-level) on purpose: the group is entered only after the `if` | |
| # above has passed, so a `labeled` event for 'automated' skips out without cancelling | |
| # the real review. At workflow level it would cancel first and skip second, leaving none. | |
| # | |
| # This supersedes the workflow-level `cancel-in-progress: false` previously used here, | |
| # whose rationale — that an 'automated' label event would cancel the real review and | |
| # then skip its own job, leaving none — was reasoned from the docs and never tested. | |
| # Production disproved it: across ~15 live opportunities on lecture-intro.zh-cn the | |
| # 'automated' event skipped without cancelling and a review was posted every time. | |
| concurrency: | |
| group: review-translations-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| with: | |
| fetch-depth: 2 | |
| - uses: QuantEcon/action-translation@v0 | |
| with: | |
| mode: review | |
| source-repo: QuantEcon/lecture-python-programming | |
| source-language: en | |
| target-language: fa | |
| docs-folder: lectures | |
| anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }} | |
| github-token: ${{ secrets.GITHUB_TOKEN }} |