From d13645c3a5b6fcd68c82aee6d59f60f92dd08e55 Mon Sep 17 00:00:00 2001 From: Kumi Date: Fri, 9 Feb 2024 12:53:59 +0100 Subject: [PATCH] Add GitHub workflow for Ubuntu build; remove token, update submodule Introduced a new GitHub Actions workflow to automate Python package builds on Ubuntu environments upon push or pull request events. This addition ensures the compatibility of the package on the Ubuntu platform and streamlines the continuous integration process. Updated the limedriver submodule to the latest commit, keeping the project in sync with recent upstream changes and maintaining the integrity of external dependencies. --- .github/workflows/python-package-ubuntu.yml | 29 +++++++++++++++++++++ .github/workflows/python-package.yml | 1 - extern/limedriver | 2 +- 3 files changed, 30 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/python-package-ubuntu.yml diff --git a/.github/workflows/python-package-ubuntu.yml b/.github/workflows/python-package-ubuntu.yml new file mode 100644 index 0000000..6f4e04c --- /dev/null +++ b/.github/workflows/python-package-ubuntu.yml @@ -0,0 +1,29 @@ +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: Install dependencies + run: | + sudo apt-get install -y python3 python3-pip libhdf5-dev limesuite python3-setuptools automake gcc pkg-config build-essential + + - name: Build the package + run: | + python -m build diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4d1d419..8c0b5c1 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -19,7 +19,6 @@ jobs: uses: actions/checkout@v2 with: submodules: 'recursive' - token: ${{ secrets.GITHUB_TOKEN }} - name: Install dependencies run: | diff --git a/extern/limedriver b/extern/limedriver index a6b8a3f..40245ea 160000 --- a/extern/limedriver +++ b/extern/limedriver @@ -1 +1 @@ -Subproject commit a6b8a3fd672cc1d32f74e2e9b8a188f0d522b990 +Subproject commit 40245eabe92c7c6ca1aa72dfad6c42ef44b9c85c