Skip to content

Preserve checkpoint upload timeout in DCP saves #249

Preserve checkpoint upload timeout in DCP saves

Preserve checkpoint upload timeout in DCP saves #249

Workflow file for this run

name: Lint
on:
pull_request:
concurrency:
group: lint-${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && github.run_number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -l -eo pipefail {0}
jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10']
steps:
- name: Check out repo
uses: actions/checkout@v6
- name: Setup python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Update pip
run: python -m pip install --upgrade pip
# Disabled with the external link check below.
# - name: Install Lychee (v0.24.1)
# run: |
# VERSION="v0.24.1"
# echo "Installing Lychee version: $VERSION"
# URL="https://github.com/lycheeverse/lychee/releases/download/lychee-${VERSION}/lychee-x86_64-unknown-linux-gnu.tar.gz"
# FILENAME="lychee-${VERSION}.tar.gz"
# # Load the archive, extract into temp folder, move the binary, delete the rest
# mkdir -p lychee_install
# curl -sL "$URL" -o "$FILENAME"
# tar -xzf "$FILENAME" -C lychee_install --strip-components=1
# sudo mv lychee_install/lychee /usr/local/bin/
# rm -rf lychee_install "$FILENAME"
# # Verify installation
# echo "Installed Lychee version: $(lychee --version)"
# - name: Restore Lychee cache
# uses: actions/cache@v5
# with:
# path: .lycheecache
# key: cache-lychee-${{ github.sha }}
# restore-keys: cache-lychee-
- name: Install dependencies and lint utilities
run: |
python -m pip install -r requirements.txt -r requirements-dev.txt
python -m pip install --force-reinstall --pre --index-url https://download.pytorch.org/whl/nightly/cu130 torch
pre-commit install-hooks
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@9426d40962ed5378910ee2e21d5f8c6fcbf2dd96 # v45.0.6
- name: Lint modified files
env:
# External link checks are disabled in CI.
SKIP: lychee-link-checker
run: pre-commit run --show-diff-on-failure --files ${{ steps.changed-files.outputs.all_changed_files }}
# Disabled: external documentation connection failures break unrelated PRs.
# - name: Check links with Lychee
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: |
# pre-commit run lychee-link-checker --all-files