Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/tox-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,24 @@ jobs:
sudo apt-get update -q
sudo apt-get install -qy libcap-dev

# GitHub mounts Node into containers, so actions/checkout works everywhere.
# Gitea runners don't, so the buster container needs a manual git clone.
- name: Checkout repository
if: "!(matrix.python-version == '2.7' && env.GITEA_ACTIONS == 'true')"
uses: actions/checkout@v4

- name: Checkout repository (Gitea container)
if: matrix.python-version == '2.7' && env.GITEA_ACTIONS == 'true'
env:
TOKEN: ${{ github.token }}
run: |
git config --global --add safe.directory "$PWD"
git init
SERVER="${GITHUB_SERVER_URL#https://}"
git remote add origin "https://x-access-token:${TOKEN}@${SERVER}/${GITHUB_REPOSITORY}.git"
git fetch --depth 1 origin "${GITHUB_SHA}"
git checkout FETCH_HEAD

# ── Python 3 ───────────────────────────────────────────────
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != '2.7'
Expand Down
Loading