Skip to content

pypi updates and upgrade ci versions #75

pypi updates and upgrade ci versions

pypi updates and upgrade ci versions #75

name: "Copilot Setup Steps"
# Automatically run the setup steps when they are changed to allow for easy validation, and
# allow manual testing through the repository's "Actions" tab
on:
workflow_dispatch:
pull_request:
paths:
- .github/workflows/copilot-setup-steps.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.
copilot-setup-steps:
runs-on: ubuntu-latest
timeout-minutes: 20
# Set the permissions to the lowest permissions possible needed for your steps.
# Copilot will be given its own token for its operations.
permissions:
# Copilot needs write access to create branches and pull requests during validation
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v6
with:
submodules: recursive
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Python 3.11
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'pyproject.toml'
- name: Cache system dependencies
uses: actions/cache@v5
with:
path: /var/cache/apt
key: ${{ runner.os }}-apt-copilot-${{ hashFiles('scripts/install-deps.sh') }}
restore-keys: |
${{ runner.os }}-apt-copilot-
- name: Install system dependencies
run: |
sudo apt-get update
# Install build deps to compile C extensions like bluepy
sudo apt-get install -y build-essential cmake ninja-build pkg-config libdbus-1-dev libglib2.0-dev libudev-dev libbluetooth-dev python3-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
# Install dev, test and examples extras so local setup has BLE example libraries
pip install -e .[dev,test,examples]
- name: Verify environment
run: |
python --version
python -c "import bluetooth_sig; print('✅ Framework ready')"
- name: Read the instructions
run: |
cat .github/copilot-instructions.md
cat .github/copilot-code-review.md