Fix issue with rotated fill crashing #10
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 test | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python with TKinter and a virtual X11 frame buffer | |
run: | | |
sudo apt-get update | |
sudo apt-get install tk-dev python3-tk python3 python3-pip | |
sudo apt-get install xvfb | |
- name: Install turtlethread | |
run: | | |
python -m pip install --upgrade pip | |
pip3 install --user .[dev] | |
- name: Run linter | |
run: | | |
python -m ruff check . | |
python -m ruff format --check | |
- name: Run tests | |
run: | | |
# Start virtual display driver | |
export DISPLAY=:12 | |
Xvfb $DISPLAY -screen 0 1920x1080x24 2>/tmp/Xvfb.log & sleep 1 | |
# Create postscript | |
python3 -mpytest tests --cov=turtlethread |