From 17c83ad78bda3991c90c9d0e98dcf3c1dbca7831 Mon Sep 17 00:00:00 2001 From: Henry Schreiner Date: Fri, 14 Aug 2020 15:46:07 -0400 Subject: [PATCH] ci: move formatting check to pre-commit + GitHub --- .circleci/config.yml | 17 ----------------- .github/workflows/test.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 17 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index cf0e47b2..66777904 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,22 +1,6 @@ version: 2 jobs: - flake8-mypy: - docker: - - image: circleci/python:3.6 - steps: - - checkout - - - run: - name: Install flake8 & mypy - command: sudo python -m pip install flake8 mypy - - run: - name: flake8 - command: flake8 - - run: - name: mypy - command: mypy - osx-python3.6: macos: xcode: "9.4.1" @@ -54,6 +38,5 @@ workflows: version: 2 all-tests: jobs: - - flake8-mypy - osx-python3.6 - linux-python3.6 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 41c02da4..340a578f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -7,6 +7,14 @@ on: - 'docs/**' jobs: + pre-commit: + name: Format + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + - uses: pre-commit/action@v2.0.0 + test: # skip branch builds on joerick/cibuildwheel, but always build `master` and pull requests if: github.repository != 'joerick/cibuildwheel' || github.ref == 'refs/heads/master' || github.event_name == 'pull_request'