Add sway network status tool #3
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| lint: | |
| name: Lint Python | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install black flake8 | |
| - name: Check formatting with black | |
| run: black --check --verbose --line-length 79 bin/bin/tsd-plot.py src/tsd_plot tests python | |
| - name: Lint with flake8 | |
| run: | | |
| flake8 --tee --output-file flake8.report bin/bin/tsd-plot.py src/tsd_plot tests python | |
| - name: Upload flake8 report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: flake8-report | |
| path: flake8.report | |
| tests: | |
| name: Run Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest | |
| - name: Run pytest | |
| run: pytest |