mirror of
https://github.com/agessaman/meshcore-bot.git
synced 2026-08-28 23:00:41 +00:00
Harden P0 security and release boundaries
This commit is contained in:
@@ -106,13 +106,40 @@ jobs:
|
||||
- name: mypy — strict overrides on typed modules
|
||||
run: mypy modules/ --ignore-missing-imports
|
||||
|
||||
package:
|
||||
name: Build and smoke-test distributions
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: "3.11"
|
||||
cache: pip
|
||||
|
||||
- name: Build wheel and source distribution
|
||||
run: |
|
||||
python -m pip install --upgrade pip build twine
|
||||
python -m build
|
||||
python -m twine check dist/*
|
||||
|
||||
- name: Install and smoke-test wheel outside the source tree
|
||||
run: |
|
||||
python -m venv /tmp/meshcore-wheel-smoke
|
||||
/tmp/meshcore-wheel-smoke/bin/pip install dist/*.whl
|
||||
cd /tmp
|
||||
/tmp/meshcore-wheel-smoke/bin/python "$GITHUB_WORKSPACE/scripts/smoke_test_wheel.py"
|
||||
/tmp/meshcore-wheel-smoke/bin/meshcore-bot --help >/dev/null
|
||||
/tmp/meshcore-wheel-smoke/bin/meshcore-viewer --help >/dev/null
|
||||
|
||||
test:
|
||||
name: Tests (Python ${{ matrix.python-version }})
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.11", "3.12", "3.13"]
|
||||
python-version: ["3.10", "3.11", "3.12", "3.13"]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
||||
Reference in New Issue
Block a user