Handle 16 and 256 color terminals better (#39) #91
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 tests | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ['3.11', '3.12'] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{matrix.python-version}} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{matrix.python-version}} | |
- name: Install system build deps | |
run: | | |
sudo apt install libgirepository1.0-dev libcaca0 gir1.2-gstreamer-1.0 | |
- name: Install runtime tools | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
- name: Setup poetry env | |
run: | | |
poetry install | |
- name: Test with pytest | |
run: | | |
poetry run pytest | |
- name: Test package build | |
run: | | |
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \ | |
poetry build | |
- name: Test pex build | |
run: | | |
SOURCE_DATE_EPOCH=$(git log -1 --pretty=%ct) \ | |
poetry run pex . -o dist/tuatara.${{matrix.python-version}} -c tuatara |