changed PF streamflow notebook title #44
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: Run Unit Tests | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [ main ] | |
| # Cancel older runs for the same PR to save minutes | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| tests: | |
| name: Unit tests | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| if: ${{ github.event.pull_request.draft == false || github.event_name == 'push' }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ['3.12'] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: 'pip' | |
| - name: Install package and dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . --group test | |
| - name: Register hf-hydrodata credentials as a public user | |
| env: | |
| TEST_EMAIL_PUBLIC: ${{ secrets.TEST_EMAIL_PUBLIC }} | |
| TEST_PIN_PUBLIC: ${{ secrets.TEST_PIN_PUBLIC }} | |
| run: | | |
| python utilities/set_test_credentials.py | |
| - name: Run unit tests | |
| run: | | |
| pytest --verbose |