diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9d8c157715..70c73dfe63 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -312,7 +312,7 @@ jobs: name: "cargo fuzz build" runs-on: ubuntu-latest needs: determine_changes - if: ${{ github.ref == 'refs/heads/main' || needs.determine_changes.outputs.fuzz == 'true' }} + if: ${{ github.ref == 'refs/heads/main' || needs.determine_changes.outputs.fuzz == 'true' || needs.determine_changes.outputs.code == 'true' }} timeout-minutes: 10 steps: - uses: actions/checkout@v4 diff --git a/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs b/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs index 96e5c1d7c7..7be30ebecc 100644 --- a/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs +++ b/fuzz/fuzz_targets/red_knot_check_invalid_syntax.rs @@ -110,7 +110,7 @@ fn setup_db() -> TestDb { Program::from_settings( &db, &ProgramSettings { - target_version: PythonVersion::default(), + python_version: PythonVersion::default(), search_paths: SearchPathSettings::new(src_root), }, )