Skip to content

Commit e55b003

Browse files
authored
CCI job to GHA (#334)
* CCI job to GHA * install_deps.sh * pin to old mistune since 3.0 introduced BC breaking changes * remove CCI
1 parent 54269a4 commit e55b003

File tree

3 files changed

+43
-44
lines changed

3 files changed

+43
-44
lines changed

Diff for: .circleci/config.yml

-43
This file was deleted.

Diff for: .github/workflows/run_torchhub.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Run TorchHub
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
schedule:
9+
- cron: "0 0 * * *"
10+
workflow_dispatch:
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref == 'refs/heads/main' && format('ci-master-{0}', github.sha) || format('ci-{0}', github.ref) }}
14+
cancel-in-progress: true
15+
16+
jobs:
17+
torchub-job:
18+
uses: pytorch/test-infra/.github/workflows/linux_job.yml@main
19+
with:
20+
runner: linux.g5.4xlarge.nvidia.gpu
21+
repository: pytorch/hub
22+
gpu-arch-type: cuda
23+
gpu-arch-version: 11.6
24+
timeout: 90
25+
script: |
26+
# Mark Build Directory Safe
27+
git config --global --add safe.directory /__w/hub/hub
28+
29+
set -euxo pipefail
30+
31+
## Install Deps
32+
./scripts/install_conda.sh
33+
./scripts/install_deps.sh
34+
35+
## Sanity Check
36+
. ~/miniconda3/etc/profile.d/conda.sh
37+
conda activate base
38+
python scripts/sanity_check.py
39+
40+
## Run Pytorch scripts
41+
./scripts/run_pytorch.sh

Diff for: scripts/install_deps.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ conda install -y regex pillow tqdm boto3 requests numpy h5py scipy matplotlib un
1212
conda install -y -c conda-forge librosa inflect
1313

1414
pip install -q fastBPE sacremoses sentencepiece subword_nmt editdistance
15-
pip install -q visdom mistune filelock tokenizers packaging pandas
15+
pip install -q visdom filelock tokenizers packaging pandas
16+
pip install -q mistune==2.0.5
1617
pip install -q omegaconf timm seaborn importlib_metadata huggingface_hub
1718
pip install -q hydra-core opencv-python fvcore
1819
pip install -q --upgrade google-api-python-client

0 commit comments

Comments
 (0)