Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@ on:

jobs:
python-tests:
runs-on: ubuntu-latest
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
Expand All @@ -19,14 +24,15 @@ jobs:
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: "3.12" # specify your required Python version
python-version: ${{ matrix.python-version }}

- name: Create conda environment
run: conda env create -f environment.yml
run: conda env create -f tests-environment.yml

- name: Run tests
run: |
source /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bluemath-tk
conda activate bluemath-tests
python --version
python -m unittest discover tests/datamining/
python -m unittest discover tests/interpolation/
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ share/python-wheels/
MANIFEST
conda-recipe/
bluemath_tk/_version.py
setup.py

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ name: bluemath-tk
channels:
- conda-forge
dependencies:
- python=3.12
- python=3.10
- pip:
- bluemath-tk
27 changes: 27 additions & 0 deletions tests-environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: bluemath-tests
channels:
- conda-forge
dependencies:
- numpy
- pandas
- xarray
- netcdf4
- dask
- zarr
- scipy
- scikit-learn
- matplotlib
- qt
- pyqt
- plotly
- cartopy
- pytest
- cdsapi
- jinja2
- requests
- aiohttp
# - keras
# - tensorflow
# PIP packages can be added below (avoid this whenever possible)
- pip:
- minisom
Loading