From f5fa311a89f16549eee760aab9bcfbaa8ec1ccf2 Mon Sep 17 00:00:00 2001 From: Jiankun Pu Date: Thu, 2 Jun 2022 10:25:05 +0800 Subject: [PATCH] add formating --- .github/workflows/ci-format.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/ci-format.yml diff --git a/.github/workflows/ci-format.yml b/.github/workflows/ci-format.yml new file mode 100644 index 00000000..5fbf045f --- /dev/null +++ b/.github/workflows/ci-format.yml @@ -0,0 +1,28 @@ +name: auto-formating the commit + +on: + pull_request: + branches: + - master + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + python-version: ['3.9'] + + 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 flake8 + run: | + python -m pip install flake8==3.8.3 + - name: Run formating + run: | + flake8 src \ No newline at end of file