ci: use taskfile in CI
This commit is contained in:
parent
d2a0060f2b
commit
8a93ef0c80
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Reference in a new issue