Skip to content

Add note when encountering WebSocketBadStatusException #47

Add note when encountering WebSocketBadStatusException

Add note when encountering WebSocketBadStatusException #47

Workflow file for this run

# 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/