LimeDriverBindings/.github/workflows/python-package.yml

44 lines
924 B
YAML
Raw Permalink Normal View History

2024-02-08 14:09:28 +00:00
name: Python package build on Arch Linux
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
container:
image: archlinux:latest
options: --privileged
steps:
2024-02-08 14:26:31 +00:00
- name: Install git
run: |
yes | pacman -Sy git
2024-02-08 14:09:28 +00:00
- name: Checkout repository
uses: actions/checkout@v2
2024-02-08 14:24:47 +00:00
with:
submodules: 'recursive'
2024-02-08 14:09:28 +00:00
- name: Install dependencies
run: |
2024-06-02 05:22:28 +00:00
yes | pacman -S python python-pip hdf5 limesuite python-build automake gcc pkgconf base-devel expat
2024-02-08 14:09:28 +00:00
- name: Install the package
run: |
pip install . --break-system-packages
- name: Test if the package can be imported
run: |
python -m limedriver
2024-02-08 14:09:28 +00:00
- name: Build the package
run: |
python -m build
- name: Upload built packages as artifact
uses: actions/upload-artifact@v2
with:
name: built-package
2024-06-02 05:22:28 +00:00
path: dist/