From 06b9e08af99d3fd3cbe2ba2a8e999db46c7fa3a2 Mon Sep 17 00:00:00 2001 From: Chris Cowley Date: Mon, 30 Sep 2024 17:39:58 +0200 Subject: [PATCH] Move around Liniting in CI --- .forgejo/workflows/build.yml | 10 ---------- .forgejo/workflows/lint.yml | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 10 deletions(-) create mode 100644 .forgejo/workflows/lint.yml diff --git a/.forgejo/workflows/build.yml b/.forgejo/workflows/build.yml index 4c2444f..31b2ffd 100644 --- a/.forgejo/workflows/build.yml +++ b/.forgejo/workflows/build.yml @@ -4,18 +4,8 @@ on: - 'main' jobs: - lint: - - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: '3.10' - cache: 'pip' - - run: | - pip install flake8 api.py - build: runs-on: docker - steps: - uses: actions/checkout@v4 - name: Test run: | diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml new file mode 100644 index 0000000..590ea25 --- /dev/null +++ b/.forgejo/workflows/lint.yml @@ -0,0 +1,17 @@ +on: + push: + branches: + - 'main' + +jobs: + lint: + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + - name: Lint + - run: | + pip install flake8 api.py +