Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
70f8d4b4
Unverified
Commit
70f8d4b4
authored
May 17, 2024
by
Sayak Paul
Committed by
GitHub
May 17, 2024
Browse files
remove unsafe workflow. (#7967)
parent
6c60e430
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
56 deletions
+0
-56
.github/workflows/run_test_from_pr.yml
.github/workflows/run_test_from_pr.yml
+0
-56
No files found.
.github/workflows/run_test_from_pr.yml
deleted
100644 → 0
View file @
6c60e430
name
:
Run (SLOW) desired tests on our runner from a PR (applicable to GPUs only at the moment)
on
:
workflow_dispatch
:
inputs
:
pr_number
:
description
:
'
PR
number'
required
:
true
docker_image
:
default
:
'
diffusers/diffusers-pytorch-cuda'
description
:
'
Name
of
the
Docker
image'
required
:
true
test_command
:
description
:
'
Test
command
to
run
(e.g.:
`pytest
tests/pipelines/dit/`).
Any
valid
pytest
command
can
be
provided.'
required
:
true
env
:
IS_GITHUB_CI
:
"
1"
GH_TOKEN
:
${{ secrets.GITHUB_TOKEN }}
HF_HOME
:
/mnt/cache
DIFFUSERS_IS_CI
:
yes
OMP_NUM_THREADS
:
8
MKL_NUM_THREADS
:
8
RUN_SLOW
:
yes
jobs
:
run_tests
:
name
:
"
Run
a
test
on
our
runner
from
a
PR"
runs-on
:
[
single-gpu
,
nvidia-gpu
,
"
t4"
,
ci
]
container
:
image
:
${{ github.event.inputs.docker_image }}
options
:
--gpus all --privileged --ipc host -v /mnt/cache/.cache/huggingface:/mnt/cache/
steps
:
-
name
:
NVIDIA-SMI
run
:
|
nvidia-smi
-
uses
:
actions/checkout@v3
-
name
:
Install `gh`
run
:
|
: # see https://github.com/cli/cli/blob/trunk/docs/install_linux.md#debian-ubuntu-linux-raspberry-pi-os-apt
(type -p wget >/dev/null || (apt update && apt-get install wget -y)) \
&& mkdir -p -m 755 /etc/apt/keyrings \
&& wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | tee /etc/apt/sources.list.d/github-cli.list > /dev/null \
&& apt update \
&& apt install gh -y
-
name
:
Checkout the PR branch
run
:
|
gh pr checkout ${{ github.event.inputs.pr_number }}
-
name
:
Run tests
run
:
${{ github.event.inputs.test_command }}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment