Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-22.04, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
env:
LIMIT_NUMPY_VERSION: 2.0.0
Expand Down Expand Up @@ -54,15 +54,20 @@ jobs:
python${{ matrix.python-version }} -c "import sys; print(sys.version)"
pip --version

- name: Display GLIBCXX versions
if: matrix.os == 'ubuntu-22.04'
run: |
ls /lib/x86_64-linux-gnu/libstdc*
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

- name: Upgrade pip wheel setuptools
run: python${{ matrix.python-version }} -m pip install wheel setuptools pip --upgrade

- name: Install other dependencies
run: python${{ matrix.python-version }} -m pip install Cython pytest pytest-cov flake8
run: python${{ matrix.python-version }} -m pip install Cython pytest pytest-cov flake8 "numpy>${{ env.LIMIT_NUMPY_VERSION }}" scipy

- name: Install other dependencies
- name: Build extensions and install test dependencies
run: |
python${{ matrix.python-version }} -m pip install Cython pytest pytest-cov flake8 "numpy>${{ env.LIMIT_NUMPY_VERSION }}" scipy
python${{ matrix.python-version }} setup.py build_ext -j${{ steps.cpu-cores.outputs.count }}
python${{ matrix.python-version }} -m pip install -e .[tests]

Expand Down
17 changes: 14 additions & 3 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-22.04, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,6 +53,12 @@ jobs:
run: |
python${{ matrix.python-version }} -c "import sys; print(sys.version)"
pip --version

- name: Display GLIBCXX versions
if: matrix.os == 'ubuntu-22.04'
run: |
ls /lib/x86_64-linux-gnu/libstdc*
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

- name: Upgrade pip wheel setuptools
run: python${{ matrix.python-version }} -m pip install wheel setuptools pip --upgrade
Expand All @@ -71,7 +77,7 @@ jobs:
run: python${{ matrix.python-version }} setup.py bdist_wheel

- name: Rename Linux wheels to supported platform of PyPI
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
run: for f in dist/*.whl; do mv "$f" "$(echo "$f" | sed s/linux/manylinux1/)"; done

- name: Publish wheels to GitHub artifacts
Expand All @@ -82,7 +88,7 @@ jobs:

publish-pypi:
needs: [build-wheels]
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4

Expand All @@ -100,6 +106,11 @@ jobs:
- name: Display Python version
run: python -c "import sys; print(sys.version)"

- name: Display GLIBCXX versions
run: |
ls /lib/x86_64-linux-gnu/libstdc*
strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBCXX

- name: Install numpy, scipy
run: |
python -m pip install "numpy>${{ env.LIMIT_NUMPY_VERSION }}" scipy
Expand Down
Loading