Skip to content

Commit ee550bf

Browse files
authored
Merge pull request #88 from huggingface/ci-move
Ci move
2 parents 028b825 + 507831e commit ee550bf

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

.github/workflows/integration-test-action.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@ on:
3939
runs_on:
4040
type: string
4141
required: false
42-
default: '["single-gpu", "nvidia-gpu", "t4", "ci"]'
42+
default: 'aws-g4dn-2xlarge-cache'
4343

4444
jobs:
4545
pytorch-integration-tests:
46-
runs-on: ${{ fromJson(inputs.runs_on) }}
46+
runs-on:
47+
group: ${{ inputs.runs_on }}
4748
env:
4849
AWS_REGION: ${{ inputs.region }}
4950
HF_HOME: ${{ inputs.hf_home }}
@@ -66,4 +67,4 @@ jobs:
6667
python -m pytest \
6768
${{ inputs.test_path }} -n ${{ inputs.test_parallelism }} \
6869
--log-cli-level='${{ inputs.log_level }}' \
69-
--log-format='${{ inputs.log_format }}'
70+
--log-format='${{ inputs.log_format }}'

.github/workflows/integration-test.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,10 @@ jobs:
3535
with:
3636
test_path: "tests/integ/test_pytorch_remote_cpu.py"
3737
build_img_cmd: "make inference-pytorch-cpu"
38-
runs_on: "['ci']"
3938
pytorch-integration-local-cpu:
4039
name: Local Integration Tests - CPU
4140
uses: ./.github/workflows/integration-test-action.yaml
4241
with:
4342
test_path: "tests/integ/test_pytorch_local_cpu.py"
4443
build_img_cmd: "make inference-pytorch-cpu"
4544
test_parallelism: "1"
46-
runs_on: "['ci']"

.github/workflows/unit-test.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ concurrency:
1919

2020
jobs:
2121
pytorch-unit-test:
22-
runs-on: [single-gpu, nvidia-gpu, t4, ci]
22+
runs-on:
23+
group: aws-g4dn-2xlarge-cache
2324
env:
2425
AWS_REGION: us-east-1
2526
CACHE_TEST_DIR: /mnt/hf_cache/hf-inference-toolkit-tests
@@ -28,8 +29,9 @@ jobs:
2829
- uses: actions/[email protected]
2930
- name: Copy unit tests to cache mount
3031
run: |
31-
rm -rf ${{ env.CACHE_TEST_DIR }} && \
32-
mkdir ${{ env.CACHE_TEST_DIR }} && \
32+
sudo rm -rf ${{ env.CACHE_TEST_DIR }} && \
33+
sudo mkdir ${{ env.CACHE_TEST_DIR }} && \
34+
sudo chown -R runner ${{ env.CACHE_TEST_DIR }}
3335
cp -r tests ${{ env.CACHE_TEST_DIR }}
3436
- name: Docker Setup Buildx
3537
uses: docker/[email protected]

0 commit comments

Comments
 (0)