2024-02-09 11:53:59 +00:00
|
|
|
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'
|
|
|
|
|
2024-02-09 12:05:36 +00:00
|
|
|
- name: Set up Python 3.10
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2024-02-09 12:07:33 +00:00
|
|
|
python-version: "3.10"
|
2024-02-09 12:05:36 +00:00
|
|
|
|
|
|
|
- name: Prepare Python environment
|
|
|
|
run: |
|
|
|
|
pip install --upgrade pip h5py setuptools wheel build
|
|
|
|
|
2024-02-09 11:53:59 +00:00
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
2024-02-09 12:05:36 +00:00
|
|
|
sudo apt-get install -y libhdf5-dev limesuite automake gcc pkg-config build-essential python-is-python3
|
2024-02-09 11:53:59 +00:00
|
|
|
|
|
|
|
- name: Build the package
|
|
|
|
run: |
|
2024-02-09 12:05:36 +00:00
|
|
|
python -m build
|