summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Maslek <jmaslek11@gmail.com>2024-03-14 16:37:47 -0400
committerGitHub <noreply@github.com>2024-03-14 20:37:47 +0000
commit9b0d34076fa73bded605f3dd3116c290b29d68f5 (patch)
treeb442b19752b2896448179ce0a802609f6e6bc42b
parenta46404091e9c4ab7a2d32dfb11fc5097ee469178 (diff)
Remove terminal CI actions (#6221)
* remove ultima + althub * move twitter keys * Build + remove v3 docs * Delete terminal lints * Remove builds + remove terminal nightly * more builds + website gen * more terminal actions
-rw-r--r--.github/workflows/build-release.yml43
-rw-r--r--.github/workflows/gh-pages.yml11
-rw-r--r--.github/workflows/linting.yml13
-rw-r--r--.github/workflows/macos-build.yml280
-rw-r--r--.github/workflows/macos-ml.yml92
-rw-r--r--.github/workflows/manual-unit-test.yml149
-rw-r--r--.github/workflows/nightly-build.yml31
-rw-r--r--.github/workflows/pypi-nightly.yml22
-rw-r--r--.github/workflows/unit-test.yml184
-rw-r--r--.github/workflows/windows10_build.yml131
-rw-r--r--.github/workflows/windows_ml.yml107
-rw-r--r--website/generate_sdk_v3_markdown.py396
-rw-r--r--website/generate_terminal_v3_markdown.py435
13 files changed, 2 insertions, 1892 deletions
diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml
deleted file mode 100644
index cdcb8ca708e..00000000000
--- a/.github/workflows/build-release.yml
+++ /dev/null
@@ -1,43 +0,0 @@
-name: Build & Release
-
-env:
- OPENBB_ENABLE_QUICK_EXIT: true
- OPENBB_LOG_COLLECT: false
- OPENBB_USE_PROMPT_TOOLKIT: false
- PIP_DEFAULT_TIMEOUT: 100
- PYTHONNOUSERSITE: 1
-
-on:
- push:
- branches:
- - release/v3/*
- workflow_dispatch:
-
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-permissions:
- actions: write
-
-jobs:
- trigger-windows-build:
- runs-on: ubuntu-latest
- steps:
- - name: Trigger Windows Build
- uses: aurelien-baudet/workflow-dispatch@v2
- with:
- workflow: windows10_build.yml
- token: ${{ secrets.GITHUB_TOKEN }}
- wait-for-completion-timeout: 2h
-
- trigger-macos-build:
- runs-on: ubuntu-latest
- steps:
- - name: Trigger Intel & M1 MacOs Build
- uses: aurelien-baudet/workflow-dispatch@v2
- with:
- workflow: macos-build.yml
- token: ${{ secrets.GITHUB_TOKEN }}
- wait-for-completion-timeout: 2h
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index 0ebe358c4ca..6f4bf8634e6 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -51,17 +51,6 @@ jobs:
- name: Install dependencies
run: poetry install --no-interaction --no-root
- - name: Install packages
- run: poetry install --no-interaction -E forecast -E doc -E optimization
-
- - name: Generate SDK v3 Markdown
- run: |
- source .venv/bin/activate
- pip uninstall Brotli -y
- pytest tests/website --autodoc
- poetry run python website/generate_sdk_v3_markdown.py
- poetry run python website/generate_terminal_v3_markdown.py
-
- name: Generate Platform Markdown
run: |
source .venv/bin/activate
diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml
index e71252bbeb7..edf6025d597 100644
--- a/.github/workflows/linting.yml
+++ b/.github/workflows/linting.yml
@@ -45,12 +45,10 @@ jobs:
python-version: "3.9"
architecture: x64
- - name: Get changed files in openbb_terminal and openbb_platform for PR
+ - name: Get changed files in openbb_platform for PR
if: github.event_name == 'pull_request'
run: |
# "Checking PR diff"
- echo "terminal_files=$(git diff --diff-filter=d --name-only origin/${{ github.base_ref }}...${{ github.head_ref }} | grep 'openbb_terminal/.*\.py$' | grep -v 'openbb_terminal/openbb/package' | grep -v 'integration' | grep -v 'tests' | xargs)" >> $GITHUB_ENV
- echo $terminal_files
echo "platform_files=$(git diff --diff-filter=d --name-only origin/${{ github.base_ref }}...${{ github.head_ref }} | grep 'openbb_platform/.*\.py$' | grep -v 'openbb_platform/openbb/package' | grep -v 'integration' | grep -v 'tests' | xargs)" >> $GITHUB_ENV
echo $platform_files
@@ -67,15 +65,6 @@ jobs:
- run: black --diff --check .
- run: codespell --ignore-words=.codespell.ignore --skip="$(tr '\n' ',' < .codespell.skip | sed 's/,$//')" --quiet-level=2
- run: ruff .
- # TODO: Enable linters for openbb_terminal once we're ready
- # - run: |
- # # Run linters for openbb_terminal
- # if [ -n "${{ env.terminal_files }}" ]; then
- # mypy --ignore-missing-imports ${{ env.terminal_files }}
- # pylint terminal.py ${{ env.terminal_files }}
- # else
- # echo "No Python files changed in openbb_terminal"
- # fi
- run: |
# Run linters for openbb_platform
if [ -n "${{ env.platform_files }}" ]; then
diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml
deleted file mode 100644
index 6c7a2971b17..00000000000
--- a/.github/workflows/macos-build.yml
+++ /dev/null
@@ -1,280 +0,0 @@
-name: MacOS Build
-
-env:
- OPENBB_LOG_COLLECT: false
- OPENBB_USE_PROMPT_TOOLKIT: false
- OPENBB_FILE_OVERWRITE: true
- PIP_DEFAULT_TIMEOUT: 100
- PYTHONNOUSERSITE: 1
-
-on: workflow_dispatch
-
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- M1-MacOs-Build:
- name: M1 MacOS Build
- runs-on: [self-hosted, macos, ARM64]
- steps:
- # Checkout repository main branch. this allows for the commit hashes to line up
- - name: Checkout
- uses: actions/checkout@v3
- - name: Git Log
- run: git log
- # The following commands to clear previous PATHS and restore to defaults since we have to maintain the instance ourselves
- - name: Clean Previous Path
- run: |
- export PATH=""
- export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
- echo $PATH
- # Set up caching for conda env so that the workflow runs quickly after the first time
- - name: Setup Conda Caching
- uses: actions/cache@v3
- with:
- path: ~/conda_pkgs_dir
- key: conda-macos-3-9-${{ hashFiles('build/conda/conda-3-9-env.yaml') }}
- # Set up miniconda using the environment yaml file within the repo
- - name: Setup Miniconda
- uses: conda-incubator/setup-miniconda@v2.2.0
- with:
- miniconda-version: "latest"
- auto-update-conda: true
- channels: conda-forge,defaults
- show-channel-urls: true
- channel-priority: flexible
- environment-file: build/conda/conda-3-9-env.yaml
- activate-environment: obb
- auto-activate-base: false
- use-only-tar-bz2: true # Needed for caching some reason
-
- - name: Install Dependencies
- shell: bash -l {0}
- run: |
- conda info
- pip list
- build/conda/cleanup_artifacts.sh
- poetry install -E all -E installer
- pip uninstall papermill -y
- pip install git+https://github.com/nteract/papermill.git@main
- pip list
-
- - name: Build Bundle
- run: build/pyinstaller/build4mac.sh
- shell: bash -l {0}
-
- - name: Creating Application Keychain
- env:
- MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
- MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- MACOS_KEYCHAIN_PWD: ${{ secrets.MACOS_KEYCHAIN_PWD }}
- MACOS_CODESIGN_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
- run:
- | # when pushing to main, make to generate new cert, and utilize secrets to store new password, and identity
- echo "Ensuring Keychain with same name does not exist"
- rm -rf /Users/openbb/Library/Keychains/build.keychain-db
- echo "Decoding certificate"
- echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
- echo "Creating Keychain"
- security create-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
- echo "Setting Default Keychain"
- security default-keychain -s build.keychain
- echo "Unlocking Keychain"
- security unlock-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
- echo "Importing Keychain"
- security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
- echo "Setting Partition List"
- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_KEYCHAIN_PWD build.keychain
-
- - name: Create Signed Package
- env:
- APPLE_DEVELOPER_CERTIFICATE_ID: ${{ secrets.MACOS_INSTALLER_CODESIGN_IDENTITY }}
- MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- MACOS_KEYCHAIN_PWD: ${{ secrets.MACOS_KEYCHAIN_PWD }}
- MACOS_INSTALLER_KEYCHAIN_PWD: ${{ secrets.MACOS_INSTALLER_KEYCHAIN_PWD }}
- APPLE_SIGNING_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
- run: |
- security unlock-keychain -p $MACOS_INSTALLER_KEYCHAIN_PWD install.keychain
- build/pyinstaller/macOS/build-macos.sh OpenBBTerminal 0.0.1
- mv build/pyinstaller/macOS/target/pkg/OpenBBTerminalM1.pkg OpenBBTerminal.pkg
- shell: bash -l {0}
-
- - name: Deleting Previous Keychain
- run: |
- echo "Deleting Previous Keychain to Clean Instance"
- rm -rf /Users/openbb/Library/Keychains/build.keychain-db
-
- - name: Clean up Build Artifacts
- run: |
- rm -rf build/terminal
- rm -rf dist
- rm -rf DMG
-
- - name: Notorize DMG
- env:
- NOTARIZE_APPLE_ID: ${{ secrets.NOTARIZE_APPLE_ID }}
- NOTARIZE_APPLE_PWD: ${{ secrets.NOTARIZE_APPLE_PWD }}
- NOTARIZE_APPLE_TEAM_ID: ${{ secrets.NOTARIZE_APPLE_TEAM_ID }}
- run: |
- xcrun notarytool submit OpenBBTerminal.pkg --apple-id "$NOTARIZE_APPLE_ID" --password "$NOTARIZE_APPLE_PWD" --team-id "$NOTARIZE_APPLE_TEAM_ID" --wait
-
- - name: Staple
- run: |
- xcrun stapler staple OpenBBTerminal.pkg
-
- - name: Clean up Build Artifacts
- run: |
- rm -rf build/terminal
- rm -rf dist
- rm -rf DMG
-
- - name: Save Build Artifact PKG
- uses: actions/upload-artifact@v3
- with:
- name: OpenBBM1.pkg
- path: OpenBBTerminal.pkg
-
- - name: Get contents from PkgUtil
- run: |
- pkgutil --expand-full OpenBBTerminal.pkg extract/
- rm -rf OpenBBTerminal.pkg
-
- - name: Remove OpenBB Folder
- run: |
- rm -rf /Users/openbb/Desktop/OpenBB\ Terminal
- rm -rf ~/Desktop/OPENBB-exports
- rm -rf extract/
-
- # Job to build the MacOS Intel version of the Terminal===================================
- Intel-MacOs-Build:
- name: Intel MacOS Build
- runs-on: [self-hosted, macos, x64]
- steps:
- # Checkout repository main branch. this allows for the commit hashes to line up
- - name: Checkout
- uses: actions/checkout@v3
- - name: Git Log
- run: git log
- # The following commands to clear previous PATHS and restore to defaults since we have to maintain the instance ourselves
- - name: Clean Previous Path
- run: |
- export PATH=""
- export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
- echo $PATH
- # Set up caching for conda env so that the workflow runs quickly after the first time
- - name: Setup Conda Caching
- uses: actions/cache@v3
- with:
- path: ~/conda_pkgs_dir
- key: conda-macos-3-9-${{ hashFiles('build/conda/conda-3-9-env.yaml') }}
- # Set up miniconda using the environment yaml file within the repo
- - name: Setup Miniconda
- uses: conda-incubator/setup-miniconda@v2.2.0
- with:
- miniconda-version: "latest"
- auto-update-conda: true
- channels: conda-forge,defaults
- show-channel-urls: true
- channel-priority: flexible
- environment-file: build/conda/conda-3-9-env.yaml
- activate-environment: obb
- auto-activate-base: false
- use-only-tar-bz2: true # Needed for caching some reason
-
- - name: Install Dependencies
- shell: bash -l {0}
- run: |
- conda info
- pip list
- build/conda/cleanup_artifacts.sh
- poetry install -E all -E installer
- pip uninstall papermill -y
- pip install git+https://github.com/nteract/papermill.git@main
- pip list
-
- - name: Build Bundle
- run: build/pyinstaller/build4mac.sh
- shell: bash -l {0}
-
- - name: Creating Application Keychain
- env:
- MACOS_CERTIFICATE: ${{ secrets.MACOS_CERTIFICATE }}
- MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- MACOS_KEYCHAIN_PWD: ${{ secrets.MACOS_KEYCHAIN_PWD }}
- MACOS_CODESIGN_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
- run:
- | # when pushing to main, make to generate new cert, and utilize secrets to store new password, and identity
- echo "Ensuring Keychain with same name does not exist"
- rm -rf /Users/openbb/Library/Keychains/build.keychain-db
- echo "Decoding certificate"
- echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
- echo "Creating Keychain"
- security create-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
- echo "Setting Default Keychain"
- security default-keychain -s build.keychain
- echo "Unlocking Keychain"
- security unlock-keychain -p $MACOS_KEYCHAIN_PWD build.keychain
- echo "Importing Keychain"
- security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
- echo "Setting Partition List"
- security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $MACOS_KEYCHAIN_PWD build.keychain
-
- - name: Create Signed Package
- env:
- APPLE_DEVELOPER_CERTIFICATE_ID: ${{ secrets.MACOS_INSTALLER_CODESIGN_IDENTITY }}
- MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_CERTIFICATE_PWD }}
- MACOS_KEYCHAIN_PWD: ${{ secrets.MACOS_KEYCHAIN_PWD }}
- MACOS_INSTALLER_KEYCHAIN_PWD: ${{ secrets.MACOS_INSTALLER_KEYCHAIN_PWD }}
- APPLE_SIGNING_IDENTITY: ${{ secrets.MACOS_CODESIGN_IDENTITY }}
- run: |
- security unlock-keychain -p $MACOS_INSTALLER_KEYCHAIN_PWD install.keychain
- build/pyinstaller/macOS/build-macos.sh OpenBBTerminal 0.0.1
- mv build/pyinstaller/macOS/target/pkg/OpenBBTerminalM1.pkg OpenBBTerminal.pkg
- shell: bash -l {0}
-
- - name: Deleting Previous Keychain
- run: |
- echo "Deleting Previous Keychain to Clean Instance"
- rm -rf /Users/openbb/Library/Keychains/build.keychain-db
-
- - name: Clean up Build Artifacts
- run: |
- rm -rf build/terminal
- rm -rf dist
- rm -rf DMG
-
- - name: Notorize DMG
- env:
- NOTARIZE_APPLE_ID: ${{ secrets.NOTARIZE_APPLE_ID }}
- NOTARIZE_APPLE_PWD: ${{ secrets.NOTARIZE_APPLE_PWD }}
- NOTARIZE_APPLE_TEAM_ID: ${{ secrets.NOTARIZE_APPLE_TEAM_ID }}
- run: |
- xcrun notarytool submit OpenBBTerminal.pkg --apple-id "$NOTARIZE_APPLE_ID" --password "$NOTARIZE_APPLE_PWD" --team-id "$NOTARIZE_APPLE_TEAM_ID" --wait
-
- - name: Staple
- run: |
- xcrun stapler staple OpenBBTerminal.pkg
-
- - name: Clean up Build Artifacts
- run: |
- rm -rf build/terminal
- rm -rf dist
- rm -rf DMG
-
- - name: Save Build Artifact PKG
- uses: actions/upload-artifact@v3
- with:
- name: OpenBBIntel.pkg
- path: OpenBBTerminal.pkg
-
- - name: Get contents from PkgUtil
- run: |
- pkgutil --expand-full OpenBBTerminal.pkg extract/
- rm -rf OpenBBTerminal.pkg
-
- - name: Remove OpenBB Folder
- run: |
- rm -rf /Users/openbb/Desktop/OpenBB\ Terminal
- rm -rf ~/Desktop/OPENBB-exports
- rm -rf extract/
diff --git a/.github/workflows/macos-ml.yml b/.github/workflows/macos-ml.yml
deleted file mode 100644
index f11f5502fc4..00000000000
--- a/.github/workflows/macos-ml.yml
+++ /dev/null
@@ -1,92 +0,0 @@
-name: Mac OS X Full Clean Build with ML
-env:
- OPENBB_ENABLE_QUICK_EXIT: true
- OPENBB_LOG_COLLECT: false
- OPENBB_USE_PROMPT_TOOLKIT: false
- PIP_DEFAULT_TIMEOUT: 100
- OPENBB_FILE_OVERWRITE: true
- PYTHONNOUSERSITE: 1
-on:
- push:
- branches:
- - "main"
- workflow_dispatch:
- inputs:
- comments:
- required: true
- description: "Test scenario tags"
-jobs:
- macos-conda:
- name: MacOS-latest, Conda-latest, Python 3.9
- 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 caching for conda packages
- uses: actions/cache@v2
- with:
- path: ~/conda_pkgs_dir
- key: conda-macos-3-9-${{ hashFiles('build/conda/conda-3-9-env.yaml') }}
-
- - name: Setup Miniconda
- uses: conda-incubator/setup-miniconda@v2
- with:
- miniconda-version: "latest"
- auto-update-conda: true
- channels: conda-forge,defaults
- show-channel-urls: true
- channel-priority: flexible
- environment-file: build/conda/conda-3-9-env.yaml
- activate-environment: testing
- # Needed for caching
- use-only-tar-bz2: true
-
- - name: Get pip cache dir
- shell: bash -l {0}
- id: pip-cache
- run: |
- echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
-
- - name: pip cache
- uses: actions/cache@v2
- with:
- path: ${{ steps.pip-cache.outputs.dir }}
- key: macos-3-9-pip-${{ hashFiles('**/requirements-full.txt') }}
- restore-keys: |
- macos-pip-
-
- - name: Uninstall Brotlipy
- shell: bash -l {0}
- run: |
- conda remove brotlipy -y
-
- - name: Install dependencies (Bash)
- shell: bash -l {0}
- run: |
- conda info
- pip install --requirement requirements-full.txt
- pip install docstring_parser
-
- - 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
diff --git a/.github/workflows/manual-unit-test.yml b/.github/workflows/manual-unit-test.yml
deleted file mode 100644
index 5c9be9d89e5..00000000000
--- a/.github/workflows/manual-unit-test.yml
+++ /dev/null
@@ -1,149 +0,0 @@
-name: Manually Triggered Unit Test
-
-env:
- OPENBB_ENABLE_QUICK_EXIT: true
- OPENBB_LOG_COLLECT: false
- OPENBB_USE_PROMPT_TOOLKIT: false
- OPENBB_FILE_OVERWRITE: true
- OPENBB_ENABLE_CHECK_API: false
- OPENBB_PREVIOUS_USE: true
- OPENBB_USE_INTERACTIVE_DF: false
- PIP_DEFAULT_TIMEOUT: 100
-
-on:
- workflow_dispatch:
-concurrency:
- group: ${{ github.workflow }}-${{ github.ref }}
- cancel-in-progress: true
-
-jobs:
- tests-python:
- name: Vanilla Python Tests - ${{ matrix.python-version }}
- runs-on: ${{ matrix.os }}
- strategy:
- fail-fast: true
- matrix:
- python-version: ["3.8", "3.9", "3.10"]
- os: [ubuntu-latest]
- exclude:
- - os: ubuntu-latest
- python-version: "3.9"
- steps:
- - name: Checkout Code
- uses: actions/checkout@v3
-
- - name: Setup Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- architecture: x64
-
- - name: Install Poetry
- uses: snok/install-poetry@v1
- with:
- version: 1.4.0
- virtualenvs-create: true
- virtualenvs-in-project: true
-
- - name: Setup sudo apt installs for ubuntu-latest
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- libgtk-3-dev \
- libwebkit2gtk-4.0-dev
-
- - name: Load cached venv
- id: cached-poetry-dependencies
- uses: actions/cache@v3
- with:
- path: .venv
- key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }}
-
- - name: Install dependencies
- if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- run: poetry install --no-interaction -E optimization
-
- - name: List installed packages
- shell: bash -l {0}
- run: |
- source $VENV
- pip list
-
- - name: Run tests
- env:
- MPLBACKEND: Agg
- run: |
- source $VENV
- pytest tests/ --optimization --autodoc -n auto --timeout=30
-
- - name: Start Terminal and exit
- run: |
- source $VENV
- python terminal.py
-
- full-test:
- name: Full Test Suite - (${{ matrix.python-version }}, ${{ matrix.os }})
- runs-on: ${{ matrix.os }}
- # Run only when a PR is merged or a push to release/* branch
- strategy:
- fail-fast: false
- matrix:
- python-version: ["3.8", "3.9", "3.10"]
- os: [ubuntu-latest, macos-latest]
- exclude:
- - os: ubuntu-latest
- python-version: "3.9"
- steps:
- - name: Checkout Code
- uses: actions/checkout@v3
-
- - name: Setup Python ${{ matrix.python-version }}
- uses: actions/setup-python@v4
- with:
- python-version: ${{ matrix.python-version }}
- architecture: x64
-
- - name: Install Poetry
- uses: snok/install-poetry@v1
- with:
- version: 1.4.0
- virtualenvs-create: true
- virtualenvs-in-project: true
-
- - name: Setup sudo apt installs for ubuntu-latest
- if: runner.os == 'Linux'
- run: |
- sudo apt-get update
- sudo apt-get install -y \
- libgtk-3-dev \
- libwebkit2gtk-4.0-dev
-
- - name: Load cached venv
- id: cached-poetry-dependencies
- uses: actions/cache@v3
- with:
- path: .venv
- key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }}
-
- - name: Install dependencies
- if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
- run: |
- poetry install --no-interaction -E optimization
-
- - name: List installed packages
- shell: bash -l {0}
- run: |
- source $VENV
- pip list
-
- - name: Start Terminal and exit
- run: |
- source $VENV
- python terminal.py
-
- - name: Run tests
- env:
- MPLBACKEND: Agg
- run: |
- source $VENV
- pytest tests/ --optimization --autodoc -n auto --timeout=30
diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml
index d1b8792779f..90d68cb9de5 100644
--- a/.github/workflows/nightly-build.yml
+++ b/.github/workflows/nightly-build.yml
@@ -16,35 +16,6 @@ permissions:
actions: write
jobs:
- trigger-windows-build:
- runs-on: ubuntu-latest
- steps:
- - name: Trigger Windows Build
- uses: aurelien-baudet/workflow-dispatch@v2
- with:
- workflow: windows10_build.yml
- token: ${{ secrets.GITHUB_TOKEN }}
- wait-for-completion-timeout: 3h
-
- trigger-macos-build:
- runs-on: ubuntu-latest
- steps:
- - name: Trigger M1 & Intel MacOs Build
- uses: aurelien-baudet/workflow-dispatch@v2
- with:
- workflow: macos-build.yml
- token: ${{ secrets.GITHUB_TOKEN }}
- wait-for-completion-timeout: 2h
-
- trigger-docker-build:
- runs-on: ubuntu-latest
- steps:
- - name: Trigger Docker Build
- uses: aurelien-baudet/workflow-dispatch@v2
- with:
- workflow: docker-build.yml
- token: ${{ secrets.GITHUB_TOKEN }}
-
trigger-pypi-build:
runs-on: ubuntu-latest
steps:
@@ -61,4 +32,4 @@ jobs:
uses: aurelien-baudet/workflow-dispatch@v2
with:
workflow: platform-api-integration-test.yml
- token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file
+ token: ${{ secrets.GITHUB_TOKEN }}
diff --git a/.github/workflows/pypi-nightly.yml b/.github/workflows/pypi-nightly.yml
index be5ec160acd..3a3f653df00 100644
--- a/.github/workflows/pypi-nightly.yml
+++ b/.github/workflows/pypi-nightly.yml
@@ -23,28 +23,6 @@ jobs:
python -m
pip install
build
- --user
-
- - name: OpenBBTerminal - Update version in pyproject.toml and Edit docs
- run: |
- sed -i 's/name = ".*"/name = "openbb-terminal-nightly"/' pyproject.toml
- sed -i "3s/version = \"\(.*\)\"/version = \"\1.dev$(date +%Y%m%d%H%M)\"/" pyproject.toml
- sed -i 's|pip install openbb-terminal|pip install openbb-terminal-nightly|g' ./website/pypi.md
-
- - name: OpenBBTerminal - Build a binary wheel and a source tarball
- run: >-
- python -m
- build
- --sdist
- --wheel
- --outdir dist/