WIP switch to using Poetry for builds/dev usage. Looks pretty good

still need to update readme and pypi upload
This commit is contained in:
geeksville
2024-04-27 09:18:10 -07:00
parent 23f41bff0a
commit cd5913ae6d
9 changed files with 1880 additions and 111 deletions

View File

@@ -27,21 +27,19 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install -r requirements.txt
pip3 install poetry
- name: Install meshtastic from local
run: |
pip3 install .
which meshtastic
meshtastic --version
poetry run meshtastic --version
- name: Run pylint
run: pylint meshtastic examples/ --ignore-patterns ".*_pb2.pyi?$"
run: poetry run pylint meshtastic examples/ --ignore-patterns ".*_pb2.pyi?$"
- name: Check types with mypy
run: mypy meshtastic/
- name: Run tests with pytest
run: pytest --cov=meshtastic
run: poetry run pytest --cov=meshtastic
- name: Generate coverage report
run: |
pytest --cov=meshtastic --cov-report=xml
poetry run pytest --cov=meshtastic --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
@@ -67,6 +65,5 @@ jobs:
uses: actions/setup-python@v1
- name: Install meshtastic from local
run: |
pip3 install .
which meshtastic
poetry install
meshtastic --version