Lines Matching +full:fetch +full:- +full:depth
5 branches-ignore:
6 - nightly
9 - main
10 - release/*
11 - landchecks/*
14 permissions: read-all
18 lintrunner-clang:
19 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
23 docker-image: pytorch-linux-jammy-cuda11.8-cudnn9-py3.9-linter
24 … # NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout
25 # to run git rev-parse HEAD~:.ci/docker when a new image is needed
26 fetch-depth: 0
30 export ADDITIONAL_LINTRUNNER_ARGS="--take CLANGTIDY,CLANGFORMAT"
34 lintrunner-noclang:
35 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
39 docker-image: pytorch-linux-jammy-cuda11.8-cudnn9-py3.9-linter
40 … # NB: A shallow checkout won't work here because calculate-docker-image requires a full checkout
41 # to run git rev-parse HEAD~:.ci/docker when a new image is needed
42 fetch-depth: 0
46 export ADDITIONAL_LINTRUNNER_ARGS="--skip CLANGTIDY,CLANGFORMAT"
49 quick-checks:
50 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
53 docker-image: pytorch-linux-focal-linter
54 fetch-depth: 0
58 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
61 # Ensure no non-breaking spaces
62 # NB: We use 'printf' below rather than '\u000a' since bash pre-4.2
64 …(! git --no-pager grep -In "$(printf '\xC2\xA0')" -- . || (echo "The above lines have non-breaking…
66 # Ensure cross-OS compatible file names
67 …(! git ls-files | grep -E '([<>:"|?*]|[ .]$)' || (echo "The above file names are not valid across …
70 …(! git --no-pager grep -In '#!.*python$' -- . || (echo "The above lines have versionless Python sh…
73 python3 .github/scripts/collect_ciflow_labels.py --validate-tags
77 ./check-doxygen.sh
81 set -eux
84 pr-sanity-checks:
85 name: pr-sanity-checks
86 runs-on: [self-hosted, linux.large]
88 …me == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'skip-pr-sanity-checks')
90 - name: Checkout PyTorch
91 uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.4
94 fetch-depth: -1
96 - name: PR size check (nonretryable)
101 bash .github/scripts/pr-sanity-check.sh
103 workflow-checks:
104 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
107 docker-image: pytorch-linux-focal-linter
108 fetch-depth: -1
113 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
141 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
144 docker-image: pytorch-linux-focal-linter
145 fetch-depth: 0
149 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
153 set -eu
155 export PATH=~/.npm-global/bin:"$PATH"
156 for FILE in $(git grep -Il '<!-- toc -->' -- '**.md'); do
157 markdown-toc --bullets='-' -i "$FILE"
166 echo 'install the npm package markdown-toc and run the following'
172 echo " markdown-toc --bullets='-' -i \"\$FILE\""
176 test-tools:
179 uses: pytorch/test-infra/.github/workflows/linux_job.yml@release/2.4
182 docker-image: pytorch-linux-focal-linter
183 fetch-depth: 0
187 CONDA_ENV=$(conda env list --json | jq -r ".envs | .[-1]")
191 python3 -m unittest discover -vs tools/test -p 'test_*.py'
192 python3 -m unittest discover -vs .github/scripts -p 'test_*.py'
197 runs-on: linux.20_04.4x
199 - name: Checkout PyTorch
200 uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.4
203 fetch-depth: 1
204 - name: Setup Python 3.8
205 uses: actions/setup-python@v4
207 python-version: '3.8'
210 - name: Install dependencies
212 …pip install pytest-rerunfailures==11.1.* pytest-flakefinder==1.1.* pytest-xdist==3.3.* expecttest=…
213 pip install torch --pre --index-url https://download.pytorch.org/whl/nightly/cpu/
214 - name: Run run_test.py (nonretryable)
217 python3 test/run_test.py --include test_vulkan --verbose
222 runs-on: linux.20_04.4x
228 # deep clone (fetch-depth 0) required, to allow us to use git log
229 - name: Checkout PyTorch
230 uses: pytorch/pytorch/.github/actions/checkout-pytorch@release/2.4
233 fetch-depth: 1
234 - name: Setup Python 3.6
236 uses: actions/setup-python@v4
238 python-version: '3.6'
240 check-latest: false
242 cache-dependency-path: |
244 - name: Setup Python 3.8
246 uses: actions/setup-python@v4
248 python-version: '3.8'
250 check-latest: false
252 cache-dependency-path: |
254 - name: Install torch
257 pip install -r requirements.txt
260 - name: Run collect_env.py (nonretryable)
266 …group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}-${{ github.eve…
267 cancel-in-progress: true