Skip to content

[FIX] removes memory leak issue by removing c code and using numpy/scipy functions #60

[FIX] removes memory leak issue by removing c code and using numpy/scipy functions

[FIX] removes memory leak issue by removing c code and using numpy/scipy functions #60

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:
- ["conda", "2.7"]
- ["conda", "3.6"]
- ["conda", "3.7"]
- ["native", "3.8"]
- ["native", "3.9"]
- ["native", "3.10"]
- ["native", "3.11"]
- ["native", "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@v4
with:
python-version: ${{ matrix.python[1] }}
allow-prereleases: true
if: matrix.python[0] == 'native'
- name: Set up Python ${{ matrix.python-version }} (miniconda)
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python[1] }}
if: matrix.python[0] == 'conda'
- 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