Skip to content

black reformat

black reformat #7

name: Build and Test Package
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
# Checkout the repository
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Fetch all history to ensure tags are available
# Set up Python
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.12 # Change to the desired Python version
# Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
# Build the package
- name: Build the package
run: |
python -m build
# Test importing the package
- name: Test the package import
run: |
python -m pip install dist/*.whl
python -c "import pynemaiqpet; print('pynemaiqpet version:', pynemaiqpet.__version__)"
pynemaiqpet_wb_nema_iq -h