ci: use taskfile in CI
All checks were successful
/ Tests (push) Successful in 58s
/ Static Analysis (push) Successful in 1m9s

This commit is contained in:
Marc 2024-04-13 01:51:40 -04:00
parent d2a0060f2b
commit 8a93ef0c80
Signed by: marc
GPG key ID: 048E042F22B5DC79

View file

@ -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