Skip to content

Get bits

Get bits #1911

Workflow file for this run

name: coveralls
on:
push:
branches: [master, development]
pull_request:
branches: [master, development]
jobs:
coveralls:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install packages
shell: bash
run: |
pip install tox coveralls
if [ "$RUNNER_OS" = "Linux" ]; then
sudo apt update
sudo apt-get install libegl1 libopengl0
sudo apt-get install '^libxcb.*-dev' libx11-xcb-dev libglu1-mesa-dev libxrender-dev libxi-dev libxkbcommon-dev libxkbcommon-x11-dev
sudo apt-get install libxcb-xinerama0
sudo apt-get install libxkbcommon-x11-0
sudo apt-get install xorg
sudo apt-get install -y xvfb
fi
- name: Start Xvfb
if: matrix.os == 'ubuntu-latest'
run: |
Xvfb :0 -screen 0 1024x768x24 > /dev/null 2>&1 &
export DISPLAY=:0
- name: Run coverage
run: tox -e py312
- name: Stop Xvfb
if: matrix.os == 'ubuntu-latest'
run: killall Xvfb
# see: https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
- name: Upload coverage data to coveralls.io
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}