Commit e2251638 by Arun Babu Neelicattu Committed by finswimmer

actions: split qa and add explicit skipping

parent bce954a8
name: Code Quality
on:
pull_request:
paths-ignore:
- 'docs/**'
- '.cirrus.yml'
push:
branches: [master]
paths-ignore:
- 'docs/**'
- '.cirrus.yml'
jobs:
pre-commit:
name: Linting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- uses: pre-commit/action@v2.0.0
......@@ -11,26 +11,12 @@ on:
pull_request:
paths-ignore:
- 'docs/**'
- '.cirrus.yml'
branches:
- '**'
jobs:
Linting:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Linting
run: |
pip install pre-commit
pre-commit run --all-files
Tests:
needs: Linting
tests:
name: ${{ matrix.os }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
......
# workaround for https://github.com/actions/virtual-environments/issues/1281
name: Skip All Jobs
on:
push:
paths:
- '!**'
- 'docs/**'
- '.cirrus.yml'
branches:
- master
- develop
pull_request:
paths:
- '!**'
- 'docs/**'
- '.cirrus.yml'
branches:
- '**'
jobs:
pre-commit:
name: Linting
runs-on: ubuntu-latest
steps:
- run: exit 0
tests:
name: ${{ matrix.os }} / ${{ matrix.python-version
# we do not need os specific runners here, using linux is quicker
runs-on: ubuntu-latest
strategy:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: [2.7, 3.5, 3.6, 3.7, 3.8]
steps:
- run: exit 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment