[JTH] first binwaves version implemented #55
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 | |
| 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 }}/" tests/environment.yml | |
| - name: Create conda environment | |
| run: conda env create -f tests/environment.yml | |
| - name: Run tests | |
| run: | | |
| source /usr/share/miniconda/etc/profile.d/conda.sh | |
| conda activate bluemath-tests | |
| python --version | |
| python -m unittest discover tests/datamining/ | |
| python -m unittest discover tests/interpolation/ |