mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 07:23:25 +00:00
Feature/release branch gitflow (#3998)
* release branch gitflow implentation
This commit is contained in:
4
.github/workflows/linting.yml
vendored
4
.github/workflows/linting.yml
vendored
@@ -8,13 +8,11 @@ env:
|
||||
PIP_DEFAULT_TIMEOUT: 100
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, synchronize, edited]
|
||||
push:
|
||||
branches:
|
||||
- 'feature/*'
|
||||
- 'hotfix/*'
|
||||
- 'release/[0-9]+\.[0-9]+\.[0-9]+(rc[0-9]+)?'
|
||||
- 'release/*'
|
||||
|
||||
# Cancel previous runs that are not yet completed.
|
||||
concurrency:
|
||||
|
||||
15
.github/workflows/unit-test.yml
vendored
15
.github/workflows/unit-test.yml
vendored
@@ -13,6 +13,9 @@ on:
|
||||
- develop
|
||||
- main
|
||||
types: [opened, synchronize, edited, closed]
|
||||
push:
|
||||
branches:
|
||||
- release/*
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -22,7 +25,8 @@ jobs:
|
||||
check-files-changed:
|
||||
name: Check for changes
|
||||
runs-on: ubuntu-latest
|
||||
if: github.event.pull_request.merged != true
|
||||
# Run this job only if the PR is not merged and the event is not a push
|
||||
if: github.event.pull_request.merged == false && github.event_name != 'push'
|
||||
outputs:
|
||||
check-changes: ${{ steps.check-changes.outputs.check-changes }}
|
||||
steps:
|
||||
@@ -100,7 +104,7 @@ jobs:
|
||||
|
||||
tests-python:
|
||||
name: Vanilla Python Tests - ${{ matrix.python-version }}
|
||||
needs: [check-files-changed, base-test]
|
||||
needs: [base-test]
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: true
|
||||
@@ -149,7 +153,7 @@ jobs:
|
||||
MPLBACKEND: Agg
|
||||
run: |
|
||||
source $VENV
|
||||
pytest tests/ --optimization
|
||||
pytest tests/ --optimization --autodoc
|
||||
|
||||
- name: Start Terminal and exit
|
||||
run: |
|
||||
@@ -159,7 +163,8 @@ jobs:
|
||||
full-test:
|
||||
name: Full Test Suite - (${{ matrix.python-version }}, ${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: github.event.pull_request.merged == true
|
||||
# Run only when a PR is merged or a push to release/* branch
|
||||
if: github.event_name == 'push' || github.event.pull_request.merged == true
|
||||
strategy:
|
||||
fail-fast: true
|
||||
matrix:
|
||||
@@ -217,7 +222,7 @@ jobs:
|
||||
tests-conda:
|
||||
name: Anaconda Python Tests - (${{ matrix.python-version }}, ${{ matrix.os }})
|
||||
runs-on: ${{ matrix.os }}-latest
|
||||
if: github.event.pull_request.merged == true
|
||||
if: github.event_name == 'push' || github.event.pull_request.merged == true
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
|
||||
Reference in New Issue
Block a user