From f8745691ff238427301737ae657f62b9f349a438 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Fri, 15 Mar 2024 09:10:00 +0100 Subject: [PATCH] Switch from Woodpecker CI to Forgejo Actions --- .forgejo/workflows/tests.yaml | 15 +++++++++++++++ .woodpecker.yml | 12 ------------ 2 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 .forgejo/workflows/tests.yaml delete mode 100644 .woodpecker.yml diff --git a/.forgejo/workflows/tests.yaml b/.forgejo/workflows/tests.yaml new file mode 100644 index 0000000..eeddc80 --- /dev/null +++ b/.forgejo/workflows/tests.yaml @@ -0,0 +1,15 @@ +--- +name: Run tests +on: [push] +jobs: + test-precommit: + runs-on: docker + container: + image: docker.io/brenard/python-pre-commit:latest + steps: + - name: Check out repository code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + - name: Run pre-commit + run: pre-commit run --all-files diff --git a/.woodpecker.yml b/.woodpecker.yml deleted file mode 100644 index 6a8fe74..0000000 --- a/.woodpecker.yml +++ /dev/null @@ -1,12 +0,0 @@ -pipeline: - test-pylint: - group: test - image: pipelinecomponents/pylint - commands: - - pylint check_pip_upgrade - - test-flake8: - group: test - image: pipelinecomponents/flake8 - commands: - - flake8 check_pip_upgrade