From 9b3a2689e32a973462ef8d6cdfe9c9779fd06043 Mon Sep 17 00:00:00 2001 From: Tilly Woodfield <22456167+tillywoodfield@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:31:59 +0300 Subject: [PATCH] Add CI linting steps --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 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..8582934 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: CI +on: [push] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + - name: Install dev requirements + run: pip install -r requirements_dev.txt + - name: Check black + run: black --check iati_sphinx_theme + - name: Check isort + run: isort --check-only iati_sphinx_theme + - name: Check flake8 + run: flake8 iati_sphinx_theme