Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
james77777778 committed Jul 25, 2024
1 parent 999e8fd commit 4122d9c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements_ci.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt --progress-bar off --upgrade
pip install -r requirements_ci.txt --progress-bar off --upgrade
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Check for API changes
run: |
Expand Down Expand Up @@ -71,10 +71,10 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements_ci.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt --progress-bar off --upgrade
pip install -r requirements_ci.txt --progress-bar off --upgrade
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Test with pytest
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
uses: actions/cache@v4
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('requirements_ci.txt') }}
- name: Install dependencies
run: |
pip install -r requirements.txt --progress-bar off --upgrade
pip install -r requirements_ci.txt --progress-bar off --upgrade
pip install -e ".[tests]" --progress-bar off --upgrade
- name: Check for API changes
run: |
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# THIS IS FOR GRADIO APP ONLY
# For Gradio app
--extra-index-url https://download.pytorch.org/whl/cpu
torch
torchvision
Expand Down
10 changes: 10 additions & 0 deletions requirements_ci.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# For CI
tensorflow-cpu

--extra-index-url https://download.pytorch.org/whl/cpu
torch
torchvision

jax[cpu]

keras

0 comments on commit 4122d9c

Please sign in to comment.