Merge pull request #2417 from matmair/pipeline

Pipeline refactor ... again
This commit is contained in:
Oliver 2021-12-05 08:00:02 +11:00 committed by GitHub
commit 0c9590ba37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 19 deletions

View File

@ -25,28 +25,9 @@ env:
jobs:
check_version:
name: version number
runs-on: ubuntu-latest
if: ${{ github.event_name == 'pull_request' }}
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Check version number
if: ${{ github.event_name == 'pull_request' }}
run: |
python3 ci/check_version_number.py --branch ${{ github.base_ref }}
- name: Finish
if: always()
run: echo 'done'
pep_style:
name: PEP style (python)
needs: check_version
runs-on: ubuntu-latest
if: always()
steps:
- name: Checkout code

21
.github/workflows/version.yml vendored Normal file
View File

@ -0,0 +1,21 @@
# Checks version number
name: version number
on:
pull_request:
branches-ignore:
- l10*
jobs:
check_version:
name: version number
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Check version number
run: |
python3 ci/check_version_number.py --branch ${{ github.base_ref }}