Stable #27
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: Tests | |
| on: | |
| push: | |
| branches: [ main, master, dev ] | |
| paths: | |
| - '**.py' | |
| pull_request: | |
| branches: [ main, master, dev ] | |
| jobs: | |
| Test: | |
| runs-on: ${{ matrix.os }}-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: ["ubuntu"] | |
| defaults: | |
| run: | |
| shell: bash -l {0} | |
| steps: | |
| # Checkout repo | |
| - name: Checkout package repository | |
| uses: actions/checkout@v4 | |
| # Setup Conda environment | |
| - name: Deploying miniconda | |
| uses: conda-incubator/setup-miniconda@v2 | |
| with: | |
| miniconda-version: "latest" | |
| environment-file: environment.yaml | |
| activate-environment: reservoir | |
| # Install testing dependencies | |
| - name: Install testing dependencies | |
| run: | | |
| conda install -y python pytest pytest-mock | |
| # Run tests | |
| - name: Run tests with pytest | |
| run: | | |
| python -m pytest -v tests/test_predict.py |