Skip to content

Fix tests by updating package name from gz_transport_py to gz_transport #6

Fix tests by updating package name from gz_transport_py to gz_transport

Fix tests by updating package name from gz_transport_py to gz_transport #6

Workflow file for this run

name: Tests
on:
push:
branches: [ main, master, develop ]
pull_request:
branches: [ main, master, develop ]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
exclude:
# Test older versions only on Ubuntu to reduce CI time
- os: macos-latest
python-version: '3.9'
- os: windows-latest
python-version: '3.9'
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Verify installation
run: |
python -c "from gz_transport import Node; print('Import successful')"
python -c "from gz.msgs.stringmsg_pb2 import StringMsg; print('gz.msgs import successful')"
- name: Run verification script
run: python verify_install.py
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Check package
run: twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist-packages
path: dist/
retention-days: 7