Skip to content

Bump actions/download-artifact from 7 to 8 #168

Bump actions/download-artifact from 7 to 8

Bump actions/download-artifact from 7 to 8 #168

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.11", "3.12", "3.14"]
steps:
- uses: actions/checkout@v6
- name: Setup Conda Environment
uses: conda-incubator/setup-miniconda@v3
with:
miniforge-version: latest
python-version: ${{ matrix.python-version }}
environment-file: ci/environment.yaml
activate-environment: test-environment
channels: conda-forge
conda-remove-defaults: true
channel-priority: strict
- name: Run tests
shell: bash -l {0}
run: |
pip install -e .
pytest -v
build:
name: "Build wheels on ${{ matrix.os }} ${{ matrix.cibw_archs }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-2022
cibw_archs: "AMD64"
- os: windows-11-arm
cibw_archs: "ARM64"
- os: macos-15-intel
cibw_archs: "x86_64"
- os: macos-14 # The macos-14 runner is arm64, while up until macos-13 the runners are x86_64.
cibw_archs: "arm64"
- os: "ubuntu-24.04-arm"
cibw_archs: "aarch64"
- os: "ubuntu-22.04"
cibw_archs: "x86_64"
steps:
- uses: actions/checkout@v6
# See discussion here: https://github.com/actions/runner-images/issues/9256
- name: Make sure pipx is installed for the arm64 macOS runners.
if: runner.os == 'macOS' && runner.arch == 'ARM64'
run: |
brew install pipx
pipx ensurepath
- name: Build wheels
uses: pypa/cibuildwheel@v3.3.1
env:
# see pyproject.toml for other options
CIBW_ARCHS: "${{ matrix.cibw_archs }}"
- name: upload
uses: actions/upload-artifact@v6
with:
name: wheels-${{ matrix.os }}-${{ matrix.cibw_archs }}
path: "./wheelhouse/*.whl"
publish:
runs-on: ubuntu-latest
needs:
- build
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.14"
- name: sdist
run: |
python -m pip install -U build pip
python -m build -s
- name: download
uses: actions/download-artifact@v8
with:
pattern: wheels-*
merge-multiple: true
path: dist
- name: Publish package to PyPI
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
uses: pypa/gh-action-pypi-publish@v1.13.0
with:
user: __token__
password: ${{ secrets.pypi_password }}
skip-existing: true