[JTH] test python ruff formatting v0 #79
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python Tests | |
| on: | |
| pull_request: | |
| branches: | |
| - develop | |
| types: | |
| - opened | |
| - synchronize | |
| jobs: | |
| python-tests: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.11", "3.12", "3.13"] | |
| 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: Create conda environment | |
| run: conda create -n bluemath-tk python=${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| source /usr/share/miniconda/etc/profile.d/conda.sh | |
| conda activate bluemath-tk | |
| pip install bluemath-tk | |
| pip install ruff | |
| - name: Run Ruff | |
| run: | | |
| source /usr/share/miniconda/etc/profile.d/conda.sh | |
| conda activate bluemath-tk | |
| ruff check bluemath_tk/ | |
| - 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/ | |
| python -m unittest discover tests/wrappers/ |