fixing off by one error that impacts small boards #23
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: pytest | |
on: | |
pull_request: | |
branches: | |
- main | |
types: [closed] | |
workflow_dispatch: # used to allow manual triggering | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
if: > | |
github.event.pull_request.merged == true || | |
github.event_name == 'workflow_dispatch' | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
# note this install is likely relevant for all ubuntu users... | |
# taken from https://www.reddit.com/r/github/comments/10aenmk/help_linux_action_cant_find_opengl_all_of_a_sudden/ | |
- name: Update packages | |
run: sudo apt-get update | |
- name: Install packages | |
run: sudo apt-get install --fix-missing libgl1-mesa-dev | |
# - name: Install X11 and xcb dependencies | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install -y xvfb libxcb1 x11-apps | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
- name: Configure Poetry | |
run: | | |
echo "$HOME/.local/bin" >> $GITHUB_PATH | |
poetry config virtualenvs.create false | |
- name: Install dependencies | |
run: poetry install | |
# - name: Run tests with xvfb | |
# run: xvfb-run --auto-servernum --server-args='-screen 0, 1024x768x24' poetry run pytest | |
- name: Run tests | |
run: poetry run pytest |