Skip to content

Commit

Permalink
Separate dependencies for python 3.7 and 3.9 (#3548)
Browse files Browse the repository at this point in the history
* Separate dependencies

* Lint

* Install in dep + revert

* Typo
  • Loading branch information
freddyaboulton authored Mar 20, 2023
1 parent 8ec2b0b commit ce1837f
Show file tree
Hide file tree
Showing 2 changed files with 418 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,22 @@ jobs:
cache-dependency-path: ui/pnpm-lock.yaml
- name: Install pip
run: python -m pip install build requests virtualenv
- name: Install Gradio + Python Deps
- name: Install Gradio
run: |
python -m virtualenv venv
. venv/bin/activate
bash scripts/install_gradio.sh
bash scripts/install_test_requirements.sh
pip install --upgrade pip
- name: Install 3.9 Test Dependencies
if: ${{ matrix.python-version == '3.9' }}
run: |
. venv/bin/activate
pip install -r test/requirements.txt
- name: Install 3.7 Test Dependencies
if: ${{ matrix.python-version == '3.7' }}
run: |
. venv/bin/activate
pip install -r test/requirements-37.txt
- name: Lint
run: |
. venv/bin/activate
Expand Down
Loading

0 comments on commit ce1837f

Please sign in to comment.