Skip to content

[JTH] pcs df option and binwaves kp extraction working #56

[JTH] pcs df option and binwaves kp extraction working

[JTH] pcs df option and binwaves kp extraction working #56

Workflow file for this run

name: Python Tests
on:
pull_request:
branches:
- develop
types:
- opened
jobs:
python-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
fail-fast: false
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
- name: Modify environment file with Python version
run: sed -i "s/python=[0-9.]\+/python=${{ matrix.python-version }}/" environment.yml
- name: Create conda environment
run: conda env create -f environment.yml
- name: Run tests
run: |
source /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bluemath-tk
python --version
python -m unittest discover tests/datamining/
python -m unittest discover tests/interpolation/