Skip to content
Merged
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
17 changes: 15 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ on:
- develop
types:
- opened
- synchronize

jobs:
python-tests:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest]
Expand All @@ -28,12 +30,23 @@ jobs:
- name: Create conda environment
run: conda create -n bluemath-tk python=${{ matrix.python-version }}

- name: Run tests
- name: Install dependencies
run: |
source /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bluemath-tk
pip install bluemath-tk
python --version
pip install ruff

- name: Run Ruff
run: |
source /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bluemath-tk
ruff check bluemath_tk/datamining/

- name: Run tests
run: |
source /usr/share/miniconda/etc/profile.d/conda.sh
conda activate bluemath-tk
python -m unittest discover tests/datamining/
python -m unittest discover tests/downloaders/
python -m unittest discover tests/interpolation/
Expand Down