test: Add tests for _disconnect future handling in __aexit__ #110
This file contains 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: Build documentation | |
on: | |
push: | |
branches: [main] | |
paths: | |
- "docs/**" | |
- "aiomqtt/**" | |
- README.md | |
- .github/workflows/docs.yml | |
pull_request: | |
paths: | |
- "docs/**" | |
- "aiomqtt/**" | |
- README.md | |
- .github/workflows/docs.yml | |
jobs: | |
docs: | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 # Uses the Python version in .python-version | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
with: | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
installer-parallel: true | |
- name: Load virtual environment cache | |
id: cache | |
uses: actions/cache@v2 | |
with: | |
path: .venv | |
key: ${{ runner.os }}-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
if: steps.cache.outputs.cache-hit != 'true' | |
run: scripts/setup | |
- name: Build documentation | |
run: scripts/docs | |
- name: Deploy to GitHub Pages | |
uses: peaceiris/actions-gh-pages@v3 | |
if: github.ref == 'refs/heads/main' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./docs/_build | |
publish_branch: documentation | |
user_name: "github-actions[bot]" | |
user_email: "github-actions[bot]@users.noreply.github.com" |