Support dynamic fill value to hl.full #1567
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- release/* | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
- name: Set up Miniconda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: torch27 | |
python-version: 3.12 | |
channels: defaults,pytorch,conda-forge | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.conda/pkgs | |
~/.cache/pip | |
key: ${{ runner.os }}-deps-${{ hashFiles('.github/workflows/lint.yml') }} | |
restore-keys: | | |
${{ runner.os }}-deps- | |
- name: Install CUDA | |
run: | | |
conda install nvidia/label/cuda-12.8.1::cuda-toolkit | |
- name: Install PyTorch | |
run: | | |
pip3 install torch --index-url https://download.pytorch.org/whl/cu128 | |
- name: Install lint dependencies | |
run: ./lint.sh install | |
- name: Install pre-commit | |
run: | | |
python -m pip install --upgrade pip | |
pip install .'[dev]' | |
- name: Run pre-commit | |
run: pre-commit run --all-files |