Skip to content

Enable tests again

Enable tests again #26

Workflow file for this run

name: Test
on: [push, pull_request]
env:
PYTHONFAULTHANDLER: x
ALL_TESTS: 1
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- python-version: '3.10'
toxenv: py310
- python-version: '3.11'
toxenv: py311
- python-version: '3.11'
toxenv: pillow8.x
- python-version: '3.11'
toxenv: pillow9.x
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
sudo apt-get install fonts-ipafont-gothic ghostscript libjpeg8-dev libfreetype6-dev
pip install -U docutils tox
- name: Run tox
env:
TOXENV: ${{ matrix.toxenv }}
run: tox -- -v
native:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.11
uses: actions/setup-python@v2
with:
python-version: 3.11
- name: Install dependencies
run: |
sudo apt-get install fonts-ipafont-gothic ghostscript libjpeg8-dev libfreetype6-dev ccache patchelf
pip install -U docutils tox nuitka
pip install .
- name: Build native image
run: |
python3 -m nuitka --include-module=blockdiag.imagedraw --include-module=blockdiag.plugins --include-module=blockdiag.utils --include-module=blockdiag.noderenderer --onefile `which blockdiag`
- name: Smoke test
run: |
./blockdiag.bin
- uses: actions/upload-artifact@v3
with:
name: blockdiag.bin
path: ./blockdiag.bin