From 73757b0efdcc798031b939fd80bfe5fad9479ff7 Mon Sep 17 00:00:00 2001 From: Lee Miller Date: Sun, 28 Jul 2024 13:56:15 -0600 Subject: [PATCH] add workflow --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5c06779 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: CI + +on: [push, pull_request] + +jobs: + build: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: ['3.8', '3.9', '3.10', '3.11'] + + steps: + - uses: actions/checkout@v2 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel setuptools_scm Cython numpy + + - name: Build and install package + run: | + python setup.py build_ext --inplace + python -m pip install . + + - name: Test installation + run: | + python -m unittest discover -s tests +