Skip to content

floogen: Publish on PyPI (#160) #937

floogen: Publish on PyPI (#160)

floogen: Publish on PyPI (#160) #937

Workflow file for this run

# Copyright 2024 ETH Zurich and University of Bologna.
# Solderpad Hardware License, Version 0.51, see LICENSE for details.
# SPDX-License-Identifier: SHL-0.51
# Author: Tim Fischer <fischeti@iis.ee.ethz.ch>
name: floogen
on:
pull_request:
push:
branches:
- main
- develop
jobs:
unit-test-pip:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install .
python -m pip install --group dev
- name: Run unit tests
run: |
python -m pytest -v
unit-test-uv:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Install uv
uses: astral-sh/setup-uv@v6
- name: Sync project + dev group
run: uv sync --locked --group dev
- name: Run unit tests
run: uv run -m pytest -v
py-version-check:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v5
- name: Install uv and set the Python version
uses: astral-sh/setup-uv@v7
with:
python-version: ${{ matrix.python-version }}
- name: Check minimum Python version
run: uv run floogen rtl -c floogen/examples/axi_mesh_xy.yml > /dev/null