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
20 changes: 0 additions & 20 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,6 @@ permissions:
contents: read

jobs:
build:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- { os: linux, runner: ubuntu-24.04, target: x86_64, container: "ghcr.io/rust-cross/manylinux_2_28-cross:x86_64" }
- { os: macos, runner: macos-15, target: aarch64 }
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.x
- name: Build wheels
uses: PyO3/maturin-action@v1
with:
target: ${{ matrix.platform.target }}
args: --release --out dist --find-interpreter
sccache: 'true'
manylinux: auto
container: ${{ matrix.platform.container }}
test:
name: Run test
uses: ./.github/workflows/_test.yml
18 changes: 15 additions & 3 deletions .github/workflows/_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,28 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Setup venv
run: |
python -m venv .venv
- uses: actions/cache@v4
with:
path: .venv
key: ${{ runner.os }}-pythonenv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
restore-keys: |
${{ runner.os }}-pythonenv-${{ matrix.python-version }}-
- name: Python build & test
- name: Install Python toolchains
run: |
source .venv/bin/activate
pip install maturin pytest mypy
- name: Python build
run: |
python -m venv .venv
source .venv/bin/activate
pip install maturin pytest
maturin develop
- name: Python type check (mypy)
run: |
source .venv/bin/activate
mypy python
- name: Python tests
run: |
source .venv/bin/activate
pytest python/cocoindex/tests