|
39 | 39 | run: pip-audit . --cache-dir /tmp/pip-audit-cache |
40 | 40 | - name: Vulture dead-code scan |
41 | 41 | run: vulture |
| 42 | + - name: Radon complexity policy |
| 43 | + env: |
| 44 | + PR_BASE_SHA: ${{ github.event.pull_request.base.sha }} |
| 45 | + PUSH_BEFORE_SHA: ${{ github.event.before }} |
| 46 | + run: python tools/check_radon_policy.py --base-ref auto |
42 | 47 | - name: Radon complexity report |
43 | 48 | continue-on-error: true |
44 | 49 | run: radon cc c_parser fortran_parser semantics x2py -n C -s --total-average |
@@ -112,31 +117,33 @@ jobs: |
112 | 117 | - name: Run tests with a changing random seed |
113 | 118 | env: |
114 | 119 | PYTHONPATH: . |
115 | | - run: python -m pytest -q -n auto --randomly-seed=${{ github.run_id }} --benchmark-disable |
| 120 | + run: python -m pytest -q -n auto --randomly-seed=${{ github.run_id }} |
116 | 121 |
|
117 | | - benchmark: |
118 | | - if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
119 | | - runs-on: ubuntu-latest |
120 | | - timeout-minutes: 15 |
121 | | - permissions: |
122 | | - contents: read |
123 | | - steps: |
124 | | - - name: Checkout repository |
125 | | - uses: actions/checkout@v4 |
126 | | - - name: Set up Python |
127 | | - uses: actions/setup-python@v5 |
128 | | - with: |
129 | | - python-version: "3.12" |
130 | | - - name: Install QA dependencies |
131 | | - run: | |
132 | | - python -m pip install --upgrade pip |
133 | | - python -m pip install -e ".[qa]" |
134 | | - - name: Run parser benchmarks |
135 | | - env: |
136 | | - PYTHONPATH: . |
137 | | - run: python -m pytest -q tests/benchmarks -m benchmark --benchmark-only --benchmark-json=benchmark.json |
138 | | - - name: Upload benchmark report |
139 | | - uses: actions/upload-artifact@v4 |
140 | | - with: |
141 | | - name: parser-benchmark-${{ github.run_id }} |
142 | | - path: benchmark.json |
| 122 | + # Benchmark workflow is intentionally parked for later activation. |
| 123 | + # benchmark: |
| 124 | + # if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
| 125 | + # runs-on: ubuntu-latest |
| 126 | + # timeout-minutes: 15 |
| 127 | + # permissions: |
| 128 | + # contents: read |
| 129 | + # steps: |
| 130 | + # - name: Checkout repository |
| 131 | + # uses: actions/checkout@v4 |
| 132 | + # - name: Set up Python |
| 133 | + # uses: actions/setup-python@v5 |
| 134 | + # with: |
| 135 | + # python-version: "3.12" |
| 136 | + # - name: Install QA dependencies |
| 137 | + # run: | |
| 138 | + # python -m pip install --upgrade pip |
| 139 | + # python -m pip install -e ".[qa]" |
| 140 | + # - name: Run parser benchmarks |
| 141 | + # env: |
| 142 | + # PYTHONPATH: . |
| 143 | + # run: python -m pytest -q tests/benchmarks -m benchmark --benchmark-only --benchmark-json=benchmark.json |
| 144 | + # - name: Upload benchmark report |
| 145 | + # uses: actions/upload-artifact@v4 |
| 146 | + # with: |
| 147 | + # name: parser-benchmark-${{ github.run_id }} |
| 148 | + # path: benchmark.json |
| 149 | + # retention-days: 90 |
0 commit comments