mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-27 12:40:35 +00:00
Add caching to full builds
This commit is contained in:
27
.github/workflows/Mac.yml
vendored
27
.github/workflows/Mac.yml
vendored
@@ -31,6 +31,12 @@ jobs:
|
||||
# to be able to push to GitHub.
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup caching for conda packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/conda_pkgs_dir
|
||||
key: conda-macos-3-8-${{ hashFiles('requirements*.txt') }}
|
||||
|
||||
- name: Setup Miniconda
|
||||
uses: conda-incubator/setup-miniconda@v2
|
||||
with:
|
||||
@@ -44,6 +50,27 @@ jobs:
|
||||
# Needed for caching
|
||||
use-only-tar-bz2: true
|
||||
|
||||
- name: Update pip version (Bash)
|
||||
shell: bash -l {0}
|
||||
run: |
|
||||
conda update pip
|
||||
pip --version
|
||||
pip cache dir
|
||||
|
||||
- name: Get pip cache dir
|
||||
shell: bash -l {0}
|
||||
id: pip-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
|
||||
- name: pip cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: macos-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
macos-pip-
|
||||
|
||||
- name: Install gensim with conda
|
||||
shell: bash -l {0}
|
||||
run: |
|
||||
|
||||
27
.github/workflows/windows.yml
vendored
27
.github/workflows/windows.yml
vendored
@@ -31,6 +31,12 @@ jobs:
|
||||
# to be able to push to GitHub.
|
||||
persist-credentials: false
|
||||
|
||||
- name: Setup caching for conda packages
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ~/conda_pkgs_dir
|
||||
key: conda-windows-3-7-${{ hashFiles('requirements*.txt') }}
|
||||
|
||||
- name: Setup Miniconda
|
||||
uses: conda-incubator/setup-miniconda@v2
|
||||
with:
|
||||
@@ -50,6 +56,27 @@ jobs:
|
||||
run: >-
|
||||
c:\windows\system32\icacls C:\Users\runneradmin\AppData\Local\Temp /grant "everyone":F /t
|
||||
|
||||
- name: Update pip version (Bash)
|
||||
shell: bash -l {0}
|
||||
run: |
|
||||
conda update pip
|
||||
pip --version
|
||||
pip cache dir
|
||||
|
||||
- name: Get pip cache dir
|
||||
shell: bash -l {0}
|
||||
id: pip-cache
|
||||
run: |
|
||||
echo "::set-output name=dir::$(pip cache dir)"
|
||||
|
||||
- name: pip cache
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: ${{ steps.pip-cache.outputs.dir }}
|
||||
key: windows-pip-${{ hashFiles('**/requirements.txt') }}
|
||||
restore-keys: |
|
||||
windows-pip-
|
||||
|
||||
- name: Install fbprophet with conda
|
||||
shell: bash -l {0}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user