Skip to content

ENH: Configure isolated builds and set up cibuildwheel #41

ENH: Configure isolated builds and set up cibuildwheel

ENH: Configure isolated builds and set up cibuildwheel #41

Workflow file for this run

name: Test suite
on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- master
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash -el {0}
# Commented sections to be uncommented once CI is active
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
requires: ["", "requirements.txt"]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }} (native)
uses: actions/setup-python
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
if: ${{ matrix.python-version }} > 3.8
- name: Set up Python ${{ matrix.python-version }} (miniconda)
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
if: ${{ matrix.python-version }} <= 3.8
- name: Check environment
run: |
which python
which python3
echo $CONDA_PREFIX
echo $PATH
- name: Update pip and pytest
run: python -m pip install --upgrade pip pytest pytest-cov
- name: Install requires
run: |
python -m pip install -r ${{ matrix.requires }}
if: ${{ matrix.requires }}
- name: Install gradunwarp
run: |
python -m pip install .
- name: Test
run: pytest --pyargs gradunwarp --cov gradunwarp
working-directory: /tmp