Try to speed up CI install times

This commit is contained in:
Reuben Morais 2021-12-17 11:49:45 +01:00
parent 0057494a2a
commit 0635e8b931
5 changed files with 35 additions and 50 deletions

View File

@ -22,25 +22,22 @@ jobs:
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: coqui-ai/setup-python@pip-cache-key-py-ver
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements*'
- name: check OS - name: check OS
run: cat /etc/os-release run: cat /etc/os-release
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt update sudo apt-get update
sudo apt install -y git make sudo apt-get install -y git make gcc
sudo apt install -y python3-wheel gcc
make system-deps make system-deps
- name: Upgrade pip - name: Install/upgrade Python setup deps
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install TTS - name: Install TTS
run: | run: |
python3 -m pip install .[all] python3 -m pip install .[all]

View File

@ -22,25 +22,22 @@ jobs:
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: coqui-ai/setup-python@pip-cache-key-py-ver
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements*'
- name: check OS - name: check OS
run: cat /etc/os-release run: cat /etc/os-release
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt update sudo apt-get update
sudo apt install -y git make sudo apt-get install -y git make gcc
sudo apt install -y python3-wheel gcc
make system-deps make system-deps
- name: Upgrade pip - name: Install/upgrade Python setup deps
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install TTS - name: Install TTS
run: | run: |
python3 -m pip install .[all] python3 -m pip install .[all]

View File

@ -22,25 +22,22 @@ jobs:
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: coqui-ai/setup-python@pip-cache-key-py-ver
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements*'
- name: check OS - name: check OS
run: cat /etc/os-release run: cat /etc/os-release
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt update sudo apt-get update
sudo apt install -y git make sudo apt-get install -y --no-install-recommends git make gcc
sudo apt install -y python3-wheel gcc
make system-deps make system-deps
- name: Upgrade pip - name: Install/upgrade Python setup deps
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install TTS - name: Install TTS
run: | run: |
python3 -m pip install .[all] python3 -m pip install .[all]

View File

@ -22,25 +22,22 @@ jobs:
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: coqui-ai/setup-python@pip-cache-key-py-ver
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements*'
- name: check OS - name: check OS
run: cat /etc/os-release run: cat /etc/os-release
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt update sudo apt-get update
sudo apt install -y git make sudo apt-get install -y git make gcc
sudo apt install -y python3-wheel gcc
make system-deps make system-deps
- name: Upgrade pip - name: Install/upgrade Python setup deps
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install TTS - name: Install TTS
run: | run: |
python3 -m pip install .[all] python3 -m pip install .[all]

View File

@ -22,25 +22,22 @@ jobs:
experimental: [false] experimental: [false]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/cache@v1
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/setup.py') }}
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2 uses: coqui-ai/setup-python@pip-cache-key-py-ver
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
architecture: x64 architecture: x64
cache: 'pip'
cache-dependency-path: 'requirements*'
- name: check OS - name: check OS
run: cat /etc/os-release run: cat /etc/os-release
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt update sudo apt-get update
sudo apt install -y git make sudo apt-get install -y git make gcc
sudo apt install -y python3-wheel gcc
make system-deps make system-deps
- name: Upgrade pip - name: Install/upgrade Python setup deps
run: python3 -m pip install --upgrade pip run: python3 -m pip install --upgrade pip setuptools wheel
- name: Install TTS - name: Install TTS
run: | run: |
python3 -m pip install .[all] python3 -m pip install .[all]