mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-11-05 10:10:03 +00:00
Kumi
13fe781396
Introduced a new GitHub workflow to automate the build process for a Python package on Ubuntu. The workflow triggers on push and pull requests and includes steps for updating the package list, installing essentials like git, setting up Python 3.10, and handling dependencies. It also includes the package installation and a post-install test to confirm successful import. This automation ensures code integrity with each update and simplifies the integration process for contributors.
42 lines
No EOL
935 B
YAML
42 lines
No EOL
935 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 liblimesuite-dev automake gcc pkg-config build-essential python-is-python3
|
|
|
|
- name: Install the package
|
|
run: |
|
|
pip install .
|
|
|
|
- name: Test if the package can be imported
|
|
run: |
|
|
python -m limedriver |