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
97c8199d
Unverified
Commit
97c8199d
authored
Nov 07, 2023
by
Dhruv Nair
Committed by
GitHub
Nov 07, 2023
Browse files
Explicit torch/flax dependency check (#5673)
* explicit torch dependency check * update * update * update
parent
414d7c49
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
0 deletions
+66
-0
.github/workflows/pr_flax_dependency_test.yml
.github/workflows/pr_flax_dependency_test.yml
+34
-0
.github/workflows/pr_torch_dependency_test.yml
.github/workflows/pr_torch_dependency_test.yml
+32
-0
No files found.
.github/workflows/pr_flax_dependency_test.yml
0 → 100644
View file @
97c8199d
name
:
Run Flax dependency tests
on
:
pull_request
:
branches
:
-
main
push
:
branches
:
-
main
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
check_flax_dependencies
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install -e .
pip install "jax[cpu]>=0.2.16,!=0.3.2"
pip install "flax>=0.4.1"
pip install "jaxlib>=0.1.65"
pip install pytest
-
name
:
Check for soft dependencies
run
:
|
pytest tests/others/test_dependencies.py
.github/workflows/pr_torch_dependency_test.yml
0 → 100644
View file @
97c8199d
name
:
Run Torch dependency tests
on
:
pull_request
:
branches
:
-
main
push
:
branches
:
-
main
concurrency
:
group
:
${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress
:
true
jobs
:
check_torch_dependencies
:
runs-on
:
ubuntu-latest
steps
:
-
uses
:
actions/checkout@v3
-
name
:
Set up Python
uses
:
actions/setup-python@v4
with
:
python-version
:
"
3.8"
-
name
:
Install dependencies
run
:
|
python -m pip install --upgrade pip
pip install -e .
pip install torch torchvision torchaudio
pip install pytest
-
name
:
Check for soft dependencies
run
:
|
pytest tests/others/test_dependencies.py
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