Skip to content

update the ci action to build whl with poetry #100

update the ci action to build whl with poetry

update the ci action to build whl with poetry #100

Workflow file for this run

name: Python package
on: [push, workflow_dispatch, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: ruff
run: |
poetry run ruff check
- name: run unit tests
run: |
poetry run pytest
- name: build package
run: |
poetry build