Weekly Slow Unit Tests #213
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: Weekly Slow Unit Tests | |
| on: | |
| schedule: | |
| # Run at 10 am every monday at 5 am cst (10 am utc) | |
| - cron: '0 10 * * 1' | |
| # Run slow tests manually | |
| workflow_dispatch: | |
| jobs: | |
| rest_client: | |
| name: REST Client | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/_restclient[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/_restclient/ | |
| nwis_client: | |
| name: NWIS Client | |
| needs: rest_client | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/_restclient | |
| python3 -m pip install ./python/nwis_client[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/nwis_client/ | |
| metrics: | |
| name: Metrics | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/metrics[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/metrics/ | |
| nwm_client: | |
| name: NWM Client | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/_restclient | |
| python3 -m pip install ./python/nwm_client[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/nwm_client/ | |
| events: | |
| name: Events | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/events[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/events/ | |
| svi_client: | |
| name: SVI Client | |
| needs: rest_client | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install ./python/_restclient | |
| python3 -m pip install ./python/svi_client[develop] | |
| - name: Echo dependency versions | |
| run: | | |
| python3 -m pip freeze | |
| - name: Run all unittests | |
| run: | | |
| python3 -m pytest -s python/svi_client/ |