From fedd477e01e5e78dbc09e308cf608d8a7a9c30ca Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 22 Jul 2023 15:11:38 -0700 Subject: [PATCH] Don't attempt tui stuff on Python 3.7, refs #572 --- .github/workflows/publish.yml | 2 +- .github/workflows/test.yml | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index d5a0b69..a37907a 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -26,7 +26,7 @@ jobs: ${{ runner.os }}-pip- - name: Install dependencies run: | - pip install -e '.[test,tui]' + pip install -e '.[test]' - name: Run tests run: | pytest diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4ecfcc7..02487db 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,7 +28,10 @@ jobs: ${{ runner.os }}-pip- - name: Install dependencies run: | - pip install -e '.[test,mypy,flake8,tui]' + pip install -e '.[test,mypy,flake8]' + - name: Optionally install tui dependencies (not 3.7) + if: matrix.python-version != '3.7' + run: pip install -e '.[tui]' - name: Optionally install numpy if: matrix.numpy == 1 run: pip install numpy @@ -53,5 +56,6 @@ jobs: - name: Check formatting run: black . --check - name: Check if cog needs to be run + if: matrix.python-version != '3.7' run: | cog --check README.md docs/*.rst