LimeDriverBindings/.github/workflows/python-package-ubuntu.yml
Kumi 41bf2603d8
Refactor CI setup for Python 3.10
Upgraded the GitHub Actions workflow to explicitly set up Python 3.10.
Simplified the installation process by using pip to upgrade and install
necessary Python packages such as h5py, setuptools, wheel, and build,
rather than installing individual Python and pip packages via apt-get.
This ensures a more standardized and up-to-date environment for CI
processes. Removed explicit python3 references in favor of the
actions/setup-python environment, aligning with the GitHub Actions best
practices.
2024-02-09 13:05:36 +01:00

39 lines
826 B
YAML

name: Python package build on Ubuntu
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Update package list
run: |
sudo apt-get update
- name: Install git
run: |
sudo apt-get install -y git
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: 3.10
- name: Prepare Python environment
run: |
pip install --upgrade pip h5py setuptools wheel build
- name: Install dependencies
run: |
sudo apt-get install -y libhdf5-dev limesuite automake gcc pkg-config build-essential python-is-python3
- name: Build the package
run: |
python -m build