From d0b3d38493a4687be801f98f35630d37f9c1958b Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Fri, 22 May 2020 21:38:37 +0300 Subject: [PATCH 1/1] Move primer to own workflow (#1451) --- .github/workflows/primer.yml | 31 +++++++++++++++++++++++++++++++ .github/workflows/test.yml | 6 ------ 2 files changed, 31 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/primer.yml diff --git a/.github/workflows/primer.yml b/.github/workflows/primer.yml new file mode 100644 index 0000000..b5dea5e --- /dev/null +++ b/.github/workflows/primer.yml @@ -0,0 +1,31 @@ +name: Primer + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + python-version: [3.6, 3.7, 3.8] + os: [ubuntu-latest, macOS-latest, windows-latest] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e ".[d]" + + - name: Primer run + env: + pythonioencoding: utf-8 + run: | + black-primer diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9fe99f5..bd0af61 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,9 +28,3 @@ jobs: - name: Unit tests run: | coverage run -m unittest - - - name: primer run - env: - pythonioencoding: utf-8 - run: | - black-primer -- 2.39.5