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 - uses: https://github.com/actions/setup-python@v5
with: with:
python-version: 3.12 python-version: 3.12
- uses: https://github.com/arduino/setup-task@v1
with:
version: 3.36
- run: | - run: |
pip install -r ./requirements.txt pip install -r ./requirements.txt
pip install -r ./requirements_dev.txt pip install -r ./requirements_dev.txt
pip install . pip install .
- name: Formatting - name: Formatting
run: python -m black . --check run: task format
- name: Import sort - name: Import sort
run: python -m isort . run: task isort
- name: Linting - name: Linting
run: python -m pylint **/*.py run: task lint
test: test:
name: Tests name: Tests
@ -30,9 +33,12 @@ jobs:
- uses: https://github.com/actions/setup-python@v5 - uses: https://github.com/actions/setup-python@v5
with: with:
python-version: 3.12 python-version: 3.12
- uses: https://github.com/arduino/setup-task@v1
with:
version: 3.36
- run: | - run: |
pip install -r ./requirements.txt pip install -r ./requirements.txt
pip install -r ./requirements_test.txt pip install -r ./requirements_test.txt
pip install . pip install .
- name: Test suites - name: Test suites
run: python -m pytest run: task test