Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/tests_cpu_no_docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ jobs:
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install -r requirements.txt
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
pip install -r requirements-dev.txt
- name: Install Joey
run: pip install -e .
- name: Run pytest (CPU)
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile_CPU
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM ubuntu:latest
RUN apt-get update && apt-get -y upgrade && apt-get -y install python3-pip build-essential
WORKDIR /usr/src/app
RUN pip3 install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
COPY requirements.txt joey/
RUN pip3 install -r joey/requirements.txt
RUN pip3 install torch torchvision --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt requirements-dev.txt joey/
RUN pip3 install -r joey/requirements-dev.txt
COPY . joey/
RUN pip3 install -e joey
WORKDIR /usr/src/app/joey
Loading