From 8a93ef0c8076cd7dfd2e25fce3b7978c86c8e2d3 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 13 Apr 2024 01:51:40 -0400 Subject: [PATCH] ci: use taskfile in CI --- .forgejo/workflows/main.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.forgejo/workflows/main.yml b/.forgejo/workflows/main.yml index cdfcc54..cff706a 100644 --- a/.forgejo/workflows/main.yml +++ b/.forgejo/workflows/main.yml @@ -9,16 +9,19 @@ jobs: - uses: https://github.com/actions/setup-python@v5 with: python-version: 3.12 + - uses: https://github.com/arduino/setup-task@v1 + with: + version: 3.36 - run: | pip install -r ./requirements.txt pip install -r ./requirements_dev.txt pip install . - name: Formatting - run: python -m black . --check + run: task format - name: Import sort - run: python -m isort . + run: task isort - name: Linting - run: python -m pylint **/*.py + run: task lint test: name: Tests @@ -30,9 +33,12 @@ jobs: - uses: https://github.com/actions/setup-python@v5 with: python-version: 3.12 + - uses: https://github.com/arduino/setup-task@v1 + with: + version: 3.36 - run: | pip install -r ./requirements.txt pip install -r ./requirements_test.txt pip install . - name: Test suites - run: python -m pytest + run: task test