chore(deps): upgrade dependency sphinxcontrib-trio to v1.2.0 #1174
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: "Library Checks" | |
| on: | |
| push: | |
| paths: | |
| - "discord/**" | |
| - "examples/**" | |
| - "scripts/**" | |
| - "tests/**" | |
| - "*.toml" | |
| - "*.py" | |
| - ".*" | |
| branches: [master] | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 0 * * *" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: write-all | |
| jobs: | |
| codespell: | |
| if: ${{ github.event_name != 'schedule' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v6 | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: "Setup UV" | |
| uses: ./.github/actions/sync-uv | |
| with: | |
| groups: 'dev' | |
| - name: "Run codespell" | |
| run: | |
| uv run codespell --ignore-words-list="groupt,nd,ot,ro,falsy,BU" \ | |
| --exclude-file=".github/workflows/codespell.yml" | |
| ruff: | |
| if: ${{ github.event_name != 'schedule' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v6 | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: "Setup UV" | |
| uses: ./.github/actions/sync-uv | |
| with: | |
| groups: 'dev' | |
| - name: "Run ruff linter check" | |
| run: uv run ruff check --output-format=github . | |
| - name: "Run ruff formatter check" | |
| run: uv run ruff format --output-format=github --check . | |
| ty: | |
| if: ${{ github.event_name != 'schedule' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v6 | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - name: "Setup UV" | |
| uses: ./.github/actions/sync-uv | |
| with: | |
| groups: 'dev' | |
| - name: "Run ty type check" | |
| run: uv run ty check --output-format=concise discord/ | |
| tests: | |
| if: ${{ github.event_name != 'schedule' }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.13', '3.12', '3.11', '3.10'] | |
| steps: | |
| - name: "Checkout Repository" | |
| uses: actions/checkout@v6 | |
| - name: "Setup Python" | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: "Setup UV" | |
| uses: ./.github/actions/sync-uv | |
| with: | |
| groups: 'dev' | |
| - name: "Run tests" | |
| run: uv run tox | |
| tests-pass: # ref: https://github.com/orgs/community/discussions/4324#discussioncomment-3477871 | |
| runs-on: ubuntu-latest | |
| needs: [tests] | |
| if: always() && github.event_name != 'schedule' | |
| steps: | |
| - name: Tests succeeded | |
| if: ${{ !(contains(needs.*.result, 'failure')) }} | |
| run: exit 0 | |
| - name: Tests failed | |
| if: ${{ contains(needs.*.result, 'failure') }} | |
| run: exit 1 |