Feature/release branch gitflow (#3998)

* release branch gitflow implentation
This commit is contained in:
Luqman
2023-01-17 18:01:07 +01:00
committed by GitHub
parent ba2c7452fe
commit 37258f3642
2 changed files with 11 additions and 8 deletions

View File

@@ -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:

View File

@@ -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: