Skip to content
Closed
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
16 changes: 16 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
version: 2
updates:
- package-ecosystem: "pip"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

- package-ecosystem: "gitsubmodule"
directory: "/"
schedule:
interval: "daily"
68 changes: 0 additions & 68 deletions .github/workflows/build_wheels.yml

This file was deleted.

68 changes: 68 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: CI

on: [push]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python:
- '3.8'
- '3.11'
- '3.13'

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Cache pip
uses: actions/cache@v4
with:
key: cache--${{ matrix.os }}--${{ matrix.python }}--${{ hashFiles('./requirements*.txt', './Makefile') }}
restore-keys: cache--${{ matrix.os }}--${{ matrix.python }}--
path: ~/.cache/pip

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Display Python version
run: python -c 'import sys; print(sys.version)'

- name: Update pip
run: python -m pip install -U pip wheel setuptools

- name: Install requirements
run: python -m pip install -Ur requirements-dev.txt

- name: Compile project
run: make install

- name: Run basic sanity test
run: python basic-sanity-test.py

black:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Update black
run: python -m pip install -U black

- name: Run black
run: python -m black --check ./*.py ./docs/ ./lib/
51 changes: 0 additions & 51 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

105 changes: 105 additions & 0 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
name: Build Wheels (Linux v3)

on:
workflow_dispatch:
inputs:
platform:
required: true
default: x86_64 i686 aarch64 ppc64le s390x armv7l

jobs:
define-matrix:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- run: python -m pip install -U pip wheel setuptools
- run: python -m pip install -U 'cibuildwheel==2.*'

- id: set-matrix
run: |
TARGETS="$(python -m cibuildwheel --archs "${{ github.event.inputs.platform }}" --print-build-identifiers)"
echo 'matrix=["'$(echo $TARGETS | sed -e 's/ /","/g')'"]' >> $GITHUB_OUTPUT
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_DEPENDENCY_VERSIONS: pinned
CIBW_PLATFORM: linux

build:
runs-on: ubuntu-latest

needs:
- define-matrix
strategy:
matrix:
only: ${{ fromJSON(needs.define-matrix.outputs.matrix) }}

steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
platforms: all

- name: Cache pip
uses: actions/cache@v4
with:
key: cache--${{ hashFiles('./requirements-dev.txt') }}
path: ~/.cache/pip

- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.13'

- run: python -m pip install -U pip wheel setuptools
- run: python -m pip install -Ur requirements-dev.txt
- run: python -m pip install -U 'cibuildwheel==2.*'

- run: python -m cibuildwheel --output-dir wheelhouse --only ${{ matrix.only }}
env:
CIBW_BUILD_FRONTEND: build
CIBW_SKIP: 'cp27-* pp*'
CIBW_DEPENDENCY_VERSIONS: pinned
CIBW_PLATFORM: linux
CIBW_TEST_COMMAND: python {project}/basic-sanity-test.py
CIBW_BEFORE_BUILD: make prepare

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.only }}
path: ./wheelhouse
retention-days: 1

combine:
runs-on: ubuntu-latest
needs:
- define-matrix
- build
steps:
- uses: actions/download-artifact@v4
with:
path: ./wheelhouse
- run: |
find -name '*.zip' -exec unzip '{}' ';'
find -name '*.zip' -exec rm '{}' +
find -name '*.whl' -exec mv -t. '{}' +
find -type d -delete
working-directory: ./wheelhouse
- uses: actions/upload-artifact@v4
with:
name: wheelhouse
path: ./wheelhouse
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
*.py[cdo]

/env*/
/build/
/built_wheel/
/cython_debug/
/dist/
/*.egg-info/
env*/
build/
built_wheel/
cython_debug/
dist/
*.egg-info/

*.c
*.cpp
Expand Down
Loading
Loading