summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-09-14 22:38:54 (GMT)
committerGitHub <noreply@github.com>2023-09-14 22:38:54 (GMT)
commit36d6ba08d0b143bfa52cbb642dc256d0b6fb040e (patch)
treedd2648433d7533e80e320bbfc70c50a5d2f5f30c /.github
parent5b38bdeaf1fe51b270b4d45f080854dfbd03a75d (diff)
downloadcpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.zip
cpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.tar.gz
cpython-36d6ba08d0b143bfa52cbb642dc256d0b6fb040e.tar.bz2
[3.12] gh-60283: Check for redefined test names in CI (GH-109161) (#109365)
* gh-60283: Check for redefined test names in CI (GH-109161) (cherry picked from commit 3cb9a8edca6e3fa0f0045b03a9a6444cf8f7affe) Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> * Update exclude list for 3.12 * Explicitly exclude files which failed to lint/parse * Sort to avoid future merge conflicts --------- Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
Diffstat (limited to '.github')
-rw-r--r--.github/CODEOWNERS1
-rw-r--r--.github/workflows/build.yml2
-rw-r--r--.github/workflows/lint.yml4
3 files changed, 6 insertions, 1 deletions
diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 95fd51b..913de4e 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -9,6 +9,7 @@
# pre-commit
.pre-commit-config.yaml @hugovk @AlexWaygood
+.ruff.toml @hugovk @AlexWaygood
# Build system
configure* @erlend-aasland @corona10
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 3061c8f..feddecf 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -63,7 +63,7 @@ jobs:
# into the PR branch anyway.
#
# https://github.com/python/core-workflow/issues/373
- git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
+ git diff --name-only origin/$GITHUB_BASE_REF.. | grep -qvE '(\.rst$|^Doc|^Misc|^\.pre-commit-config\.yaml$|\.ruff\.toml$)' && echo "run_tests=true" >> $GITHUB_OUTPUT || true
fi
# Check if we should run hypothesis tests
diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 27b04ba..89f6581 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -5,6 +5,10 @@ on: [push, pull_request, workflow_dispatch]
permissions:
contents: read
+env:
+ FORCE_COLOR: 1
+ RUFF_FORMAT: github
+
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true