mirror of
https://github.com/nqrduck/LimeDriverBindings.git
synced 2024-09-28 08:30:35 +00:00
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.
This commit is contained in:
parent
e0be3eec25
commit
41bf2603d8
1 changed files with 11 additions and 2 deletions
13
.github/workflows/python-package-ubuntu.yml
vendored
13
.github/workflows/python-package-ubuntu.yml
vendored
|
@ -20,10 +20,19 @@ jobs:
|
|||
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 python3 python3-pip libhdf5-dev limesuite python3-setuptools automake gcc pkg-config build-essential python3-build python3-venv python-is-python3
|
||||
sudo apt-get install -y libhdf5-dev limesuite automake gcc pkg-config build-essential python-is-python3
|
||||
|
||||
- name: Build the package
|
||||
run: |
|
||||
python3 -m build
|
||||
python -m build
|
||||
|
|
Loading…
Reference in a new issue