New changelog entry: v5.9.2-3 (#171) #807
Workflow file for this run
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: Run Tests and Upload Coverage Report | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test-and-upload-coverage-report: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
debian: [bullseye, bookworm] | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2.3.4 | |
- name: Run Python tests and generate coverage report | |
run: | | |
docker run --rm \ | |
--volume ${{ github.workspace }}:/${{ github.event.repository.name }} \ | |
debian:${{ matrix.debian }} \ | |
/bin/bash -c " \ | |
apt-get update && \ | |
apt-get install -y python3 python3-pip && \ | |
# Required to build pillow on bookworm | |
apt-get install -y libjpeg-dev zlib1g-dev && \ | |
# Required to install python packages globally with pip on bookworm | |
rm -r /usr/lib/python3.11/EXTERNALLY-MANAGED || true && \ | |
pip3 install -U pip && \ | |
cd /${{ github.event.repository.name }} && \ | |
# Install from our source until they release their latest version to PyPI | |
pip3 install bluez-peripheral==0.1.8 --extra-index-url=https://packagecloud.io/pi-top/pypi/pypi/simple && \ | |
pip3 install .[test] && \ | |
pytest -v --cov=further_link && \ | |
coverage xml \ | |
" | |
- name: Upload Python test coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
with: | |
files: ./coverage.xml | |
flags: unittests | |
env_vars: OS,PYTHON | |
fail_ci_if_error: true | |
verbose: true | |
token: ${{ secrets.CODECOV_TOKEN }} |