Skip to content

Find slots with rotation, for #56. #154

Find slots with rotation, for #56.

Find slots with rotation, for #56. #154

Workflow file for this run

# This workflow will install Python dependencies and run tests with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: build
on:
- push
- pull_request
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y -q freeglut3-dev xvfb libxkbcommon-x11-0 xserver-xephyr libxcb-xinerama0 libxcb-cursor0
python -m pip install --upgrade pip
pip install pipenv
pipenv install --dev
pip install coverage # Extra copy for codecov upload.
- name: Scan with mypy
run: |
pipenv run mypy four_letter_blocks
- name: Test with pytest
id: test
run: |
# Add QT_DEBUG_PLUGINS=1 before xvfb-run to debug Qt library problems.
xvfb-run -a pipenv run python -m coverage run --source=four_letter_blocks -m pytest
- name: Upload code coverage
run: |
pipenv install codecov
pipenv run codecov
- name: Upload image diffs
uses: actions/upload-artifact@v4
if: ${{ always() && steps.test.outcome == 'failure' }}
with:
name: image-diffs
path: |
tests/pixmap_diffs/*.png
tests/pixmap_diffs/*.svg