Add note when encountering WebSocketBadStatusException #47
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
| # This workflow will run pytest in the repository directory | |
| # This runs on pull request or on any push to the repository | |
| # based on https://www.youtube.com/watch?v=uFcXrWT4f80 | |
| name: Run tests | |
| on: | |
| pull_request: | |
| branches: ['main'] | |
| push: | |
| branches: ['main'] | |
| release: | |
| types: [prereleased, published] | |
| workflow_dispatch: | |
| jobs: | |
| tests: | |
| runs-on: ubuntu-latest | |
| environment: release | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: "3.12" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| pip install pytest | |
| pip install cryptography | |
| - name: Test with pytest | |
| env: | |
| FERNET_KEY: ${{ secrets.FERNET_KEY }} | |
| run: | | |
| pytest tests/ |