mirror of
https://github.com/meshtastic/python.git
synced 2026-04-21 15:34:04 -04:00
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:
15
.github/workflows/ci.yml
vendored
15
.github/workflows/ci.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user