Skip to content

Commit

Permalink
Splitting Linting and PyTests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBurchLog committed Dec 7, 2020
1 parent 41013f7 commit 750a64b
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,27 @@ name: PR-Actions
on: pull_request

jobs:
PR-Tests:
Linting:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '2.7', '3.4', '3.5', '3.6', '3.7', '3.8', 'pypy2', 'pypy3' ]
name: PyTests Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v2

- name: Setup python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Run Linting
run: |
pip install black flake8
make lint
PyTest:
needs: Linting
runs-on: ubuntu-latest
strategy:
matrix:
Expand All @@ -20,7 +40,7 @@ jobs:
pika-version: '0.13.1'
- python-version: '3.4'
pika-version: '0.13.1'
name: Linting Python ${{ matrix.python-version }} - PIKA ${{ matrix.pika-version }}
name: PyTests Python ${{ matrix.python-version }} - PIKA ${{ matrix.pika-version }}
steps:
- uses: actions/checkout@v2

Expand All @@ -35,13 +55,5 @@ jobs:
- name: Install PIKA
run: pip install pika==${{ matrix.pika-version }}

- name: Coverage
run: make coverage

- name: Run Linting
run: |
pip install black flake8
make lint
- name: Run Tests
run: make test
run: make test

0 comments on commit 750a64b

Please sign in to comment.