From 4fda47dfd6a60064e710763e4b750401eeba5dda Mon Sep 17 00:00:00 2001 From: Leonardo Gregianin Date: Thu, 11 Aug 2022 21:38:48 -0400 Subject: [PATCH] Add a linter check with github actions #36 --- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..654becd --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,26 @@ +name: CI + +on: [push , pull_request] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.6", "3.7", "3.8", "3.9", "3.10"] + 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 Python dependencies + run: pip install black + + - name: Run black formatter + uses: rickstaa/action-black@v1.1.14 + with: + black_args: ". --check" \ No newline at end of file