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
|
- 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
|
||||||
|
|
Reference in a new issue