44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
on: [push]
|
|
|
|
jobs:
|
|
static-analysis:
|
|
name: Static Analysis
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- 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: task format
|
|
- name: Import sort
|
|
run: task isort
|
|
- name: Linting
|
|
run: task lint
|
|
|
|
test:
|
|
name: Tests
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
github-server-url: https://forge.karnov.club
|
|
- 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: task test
|