Improve Broadcastify Experience #43
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: Tests | |
| permissions: | |
| contents: read | |
| on: | |
| pull_request: | |
| branches: [ "**" ] | |
| push: | |
| branches: [ "develop" ] | |
| jobs: | |
| test_python: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| # If you use requirements files: | |
| if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
| # Ensure pytest exists: | |
| pip install pytest requests pytest-cov | |
| - name: Run tests | |
| run: | | |
| pytest -q tests/ --cov=bin/ --cov-report term-missing | |
| test_shell_scripts: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install Bats | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y bats | |
| - name: Run BATS tests | |
| run: | | |
| # Ensure bash tests are executable | |
| find tests -type f -name '*.bats' -exec chmod +x {} + | |
| # Run each bash test script | |
| find . -type f -name '*.bats' -print0 | xargs -0 bats |