Skip to content
Merged
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
54 changes: 23 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v5
- name: Set up Python 3.11
uses: actions/setup-python@v7
with:
python-version: "3.10"
python-version: "3.11"
- name: Install tox
run: pip install tox
- name: Lint
Expand All @@ -36,13 +36,13 @@ jobs:
- twine_check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Set up Python 3.10
uses: actions/setup-python@v5
- name: Set up Python 3.11
uses: actions/setup-python@v7
with:
python-version: "3.10"
python-version: "3.11"
- name: Install tox and upgrade setuptools and pip
run: pip install --upgrade tox setuptools pip
- name: Run tox -e ${{ matrix.tox_env }}
Expand All @@ -53,32 +53,31 @@ jobs:
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "3.14t"
- "3.15"
- "3.15t"
- "pypy-3.10"
- "pypy-3.11"
- "pypy-3.11"
os: ["ubuntu-latest"]
include:
- os: "macos-latest" # For m1 macos
python-version: "3.12"
- os: "macos-15-intel" # for x86 macos
python-version: "3.10"
python-version: "3.11"
- os: "windows-latest"
python-version: "3.10"
python-version: "3.11"
- os: "windows-11-arm"
python-version: "3.11"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
Expand All @@ -95,17 +94,17 @@ jobs:
- name: Run tests
run: tox
- name: Upload coverage report
uses: codecov/codecov-action@v1
uses: codecov/codecov-action@v7

test-arch:
if: startsWith(github.ref, 'refs/tags') || github.ref == 'refs/heads/develop' || github.ref == 'refs/heads/main'
runs-on: "ubuntu-latest"
strategy:
matrix:
python_version:
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- uses: uraimo/run-on-arch-action@v3
Expand Down Expand Up @@ -138,16 +137,13 @@ jobs:
- "macos-15-intel"
- "macos-latest"
- "windows-latest"
python_version: [ "python" ]
include:
- os: "ubuntu-latest"
python_version: "pypy"
python_version: [ "python==3.11" ]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
- name: Install miniconda.
uses: conda-incubator/setup-miniconda@v3 # https://github.com/conda-incubator/setup-miniconda.
uses: conda-incubator/setup-miniconda@v4 # https://github.com/conda-incubator/setup-miniconda.
with:
channels: conda-forge,defaults
- name: Install requirements (universal)
Expand Down Expand Up @@ -183,15 +179,11 @@ jobs:
- os: "ubuntu-latest"
cibw_archs_linux: "aarch64"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7
with:
submodules: recursive
fetch-depth: 0 # Fetch everything to get accurately versioned tag.
- if: ${{ matrix.os == 'windows-11-arm' }}
uses: actions/setup-python@v5
name: Install Python
- if: ${{ matrix.os != 'windows-11-arm' }}
uses: actions/setup-python@v2 # Some issues where caused by higher versions.
- uses: actions/setup-python@v7
name: Install Python
- name: Install cibuildwheel twine build
run: python -m pip install cibuildwheel twine build
Expand All @@ -205,7 +197,7 @@ jobs:
arch: ${{ matrix.os == 'windows-11-arm' && 'arm64' || 'x64' }}
- name: Set up QEMU
if: ${{runner.os == 'Linux' && matrix.cibw_archs_linux == 'aarch64'}}
uses: docker/setup-qemu-action@v3
uses: docker/setup-qemu-action@v4
with:
platforms: arm64
- name: Build wheels
Expand Down Expand Up @@ -245,7 +237,7 @@ jobs:
if: ${{runner.os == 'Linux' && matrix.cibw_archs_linux == 'x86_64'}}
run:
python -m build --sdist
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: "dist-${{ runner.os }}-${{ runner.arch }}-${{ matrix.cibw_archs_linux }}"
path: "dist/"
Expand Down
Loading