Improve user level verbosity (#64) #112
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: Spinner test | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install ".[dev]" | |
| - name: Basic benchmark test | |
| run: | | |
| spinner run docs/examples/sleep_benchmark.yaml | |
| - name: Timeout test | |
| run: | | |
| spinner run docs/examples/timeout_test.yaml | |
| - name: Extra Args test | |
| run: | | |
| spinner run docs/examples/extra_args.yaml --extra-args "extra_time=4" | |
| - name: Extra Args comma test | |
| run: | | |
| spinner run docs/examples/extra_args_list.yaml --extra-args "hosts=machineA,machineB" | |
| - name: Extra Args list test | |
| run: | | |
| spinner run docs/examples/extra_args_sleep_list.yaml --extra-args 'sleep_time=[1,2]' | |
| - name: Capture output test | |
| run: | | |
| spinner run docs/examples/capture_output.yaml | |
| exporter: | |
| runs-on: ubuntu-latest | |
| needs: test | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install ".[dev,exporter]" | |
| - name: Sleep and plot | |
| run: | | |
| spinner run docs/examples/sleep_plot.yaml -o output.pkl | |
| spinner export -i output.pkl | |
| - name: upload produced graphs | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: generated graphs | |
| path: | | |
| benchdata.html | |
| benchdata.ipynb | |
| output-benchdata/ |