Files
OpenBB/.github/workflows/integration-test.yml
Luqman 5d39b5ca6c Feature/release branch gitflow (#4034)
* release branch gitflow

* installer test

* Revert intel build fix

* poetry install

* Mac build poetry fix

* Poetry cache clear

* Poetry fix

* Added cancel

* Minor fix

* Github Pages fix

* GH page fix

* Added condition to docker publish

* Fix nightly build

* Added hotfix to integration test and build gh run

* Minor fix

* Edit trigger for integration test

* minor corrections

Co-authored-by: James Maslek <jmaslek11@gmail.com>
2023-01-25 14:30:02 +01:00

53 lines
1.4 KiB
YAML
Vendored

name: Integration Tests
on:
push:
branches:
- release/*
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
integration-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
if: github.event_name == 'push'
uses: actions/checkout@v3
- name: Checkout specific ref
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.event.pull_request.head.ref }} && git checkout FETCH_HEAD
- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: x64
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.1.13
virtualenvs-create: true
virtualenvs-in-project: true
- 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: Run integration tests
run: |
source $VENV
python terminal.py /home/runner/work/OpenBBTerminal/OpenBBTerminal/openbb_terminal/miscellaneous/integration_tests_scripts -t