Files
OpenBB/.github/workflows/Mac.yml
2021-05-26 21:30:37 -04:00

72 lines
2.0 KiB
YAML

name: Mac OS X Full Clean Build with ML
env:
GTFF_USE_PROMPT_TOOLKIT: false
GTFF_USE_ION: false
GTFF_ENABLE_QUICK_EXIT: true
on:
push:
branches:
- "main"
- "full-builds"
workflow_dispatch:
inputs:
comments:
required: true
description: 'Test scenario tags'
jobs:
macos-conda:
name: MacOS-latest, Conda-latest, Python 3.8
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
# Need to fetch more than the last commit so that setuptools-scm can
# create the correct version string. If the number of commits since
# the last release is greater than this, the version still be wrong.
# Increase if necessary.
fetch-depth: 100
# The GitHub token is preserved by default but this job doesn't need
# to be able to push to GitHub.
persist-credentials: false
- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: '3.8'
miniconda-version: 'latest'
auto-update-conda: true
channels: conda-forge
show-channel-urls: true
environment-file: conda-environment.yaml
activate-environment: testing
# Needed for caching
use-only-tar-bz2: true
- name: Install gensim with conda
shell: bash -l {0}
run: |
conda install numpy=1.19.5
conda install gensim=3.8.3
conda install -c conda-forge cvxpy=1.1.12
- name: Install dependencies (Bash)
shell: bash -l {0}
run: |
conda info
pip install --user --requirement requirements-full.txt
- name: List installed packages (Bash)
shell: bash -l {0}
run: |
conda list
pip list
- name: Run tests (Bash)
shell: bash -l {0}
run: pytest tests/
- name: Start Terminal and exit
shell: bash -l {0}
run: python terminal.py