Skip to content

test

test #13

Workflow file for this run

name: Build and Test
on: [push, pull_request]
jobs:
build-linux:
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4.1.7
- name: Install rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Set up Python ${{ matrix.python-version }} x64
if: matrix.os == 'ubuntu-latest'
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Install Requirements
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade numpy cython wheel numpy setuptools_rust auditwheel
python -m pip install --upgrade -r $GITHUB_WORKSPACE/requirements.txt
python -m pip install --upgrade -r $GITHUB_WORKSPACE/tests/requirements.txt
- name: Build binary wheel
run: python setup.py bdist_wheel
# - name: Apply auditwheel for manylinux wheel
# run: python -m auditwheel repair -w dist dist/*
# - name: Remove linux wheel
# run: rm dist/*-linux_x86_64.whl
- name: Archive dist artifacts
uses: actions/upload-artifact@v1
with:
name: dist-linux-${{ matrix.python-version }}
path: dist