Run pytest with colors

Tip from https://twitter.com/cjolowicz/status/1461266663681187841
This commit is contained in:
Simon Willison 2021-11-19 00:09:16 -08:00 • committed by GitHub
commit 33176ad47b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,9 @@ name: Test
on: [push] on: [push]
env:
FORCE_COLOR: 1
jobs: jobs:
test: test:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
@ -31,7 +34,7 @@ jobs:
run: pip install numpy run: pip install numpy
- name: Run tests - name: Run tests
run: | run: |
pytest pytest -v
- name: run mypy - name: run mypy
run: mypy sqlite_utils tests run: mypy sqlite_utils tests
- name: run flake8 - name: run flake8