Skip to content

Commit 90384f9

Browse files
committed
[JTH] test python ruff formatting v0
1 parent e9f52a7 commit 90384f9

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ on:
66
- develop
77
types:
88
- opened
9+
- synchronize
910

1011
jobs:
1112
python-tests:
1213
runs-on: ${{ matrix.os }}
14+
1315
strategy:
1416
matrix:
1517
os: [ubuntu-latest]
@@ -28,12 +30,23 @@ jobs:
2830
- name: Create conda environment
2931
run: conda create -n bluemath-tk python=${{ matrix.python-version }}
3032

31-
- name: Run tests
33+
- name: Install dependencies
3234
run: |
3335
source /usr/share/miniconda/etc/profile.d/conda.sh
3436
conda activate bluemath-tk
3537
pip install bluemath-tk
36-
python --version
38+
pip install ruff
39+
40+
- name: Run Ruff
41+
run: |
42+
source /usr/share/miniconda/etc/profile.d/conda.sh
43+
conda activate bluemath-tk
44+
ruff check .
45+
46+
- name: Run tests
47+
run: |
48+
source /usr/share/miniconda/etc/profile.d/conda.sh
49+
conda activate bluemath-tk
3750
python -m unittest discover tests/datamining/
3851
python -m unittest discover tests/downloaders/
3952
python -m unittest discover tests/interpolation/

0 commit comments

Comments
 (0)