From 750a64b8a6b17f37a09dce437fced852f05d21aa Mon Sep 17 00:00:00 2001 From: TheBurchLog <5104941+TheBurchLog@users.noreply.github.com> Date: Mon, 7 Dec 2020 08:56:26 -0500 Subject: [PATCH] Splitting Linting and PyTests --- .github/workflows/pr-actions.yml | 34 +++++++++++++++++++++----------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr-actions.yml b/.github/workflows/pr-actions.yml index 7de83564..89295cff 100644 --- a/.github/workflows/pr-actions.yml +++ b/.github/workflows/pr-actions.yml @@ -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: @@ -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 @@ -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 \ No newline at end of file + run: make test