7
7
ALL_TESTS : 1
8
8
9
9
jobs :
10
- test :
10
+ # test:
11
+ # runs-on: ubuntu-latest
12
+ # strategy:
13
+ # fail-fast: false
14
+ # matrix:
15
+ # include:
16
+ # - python-version: '3.10'
17
+ # toxenv: py310
18
+ # - python-version: '3.11'
19
+ # toxenv: py311
20
+ # - python-version: '3.11'
21
+ # toxenv: pillow8.x
22
+ # - python-version: '3.11'
23
+ # toxenv: pillow9.x
24
+ # steps:
25
+ # - uses: actions/checkout@v2
26
+ # - name: Set up Python ${{ matrix.python-version }}
27
+ # uses: actions/setup-python@v2
28
+ # with:
29
+ # python-version: ${{ matrix.python-version }}
30
+ # - name: Install dependencies
31
+ # run: |
32
+ # sudo apt-get install fonts-ipafont-gothic ghostscript libjpeg8-dev libfreetype6-dev
33
+ # pip install -U docutils tox
34
+ # - name: Run tox
35
+ # env:
36
+ # TOXENV: ${{ matrix.toxenv }}
37
+ # run: tox -- -v
38
+ native :
11
39
runs-on : ubuntu-latest
12
- strategy :
13
- fail-fast : false
14
- matrix :
15
- include :
16
- - python-version : ' 3.10'
17
- toxenv : py310
18
- - python-version : ' 3.11'
19
- toxenv : py311
20
- - python-version : ' 3.11'
21
- toxenv : pillow8.x
22
- - python-version : ' 3.11'
23
- toxenv : pillow9.x
24
40
steps :
25
41
- uses : actions/checkout@v2
26
- - name : Set up Python ${{ matrix.python-version }}
42
+ - name : Set up Python 3.11
27
43
uses : actions/setup-python@v2
28
44
with :
29
- python-version : ${{ matrix.python-version }}
45
+ python-version : 3.11
30
46
- name : Install dependencies
31
47
run : |
32
- sudo apt-get install fonts-ipafont-gothic ghostscript libjpeg8-dev libfreetype6-dev
33
- pip install -U docutils tox
34
- - name : Run tox
35
- env :
36
- TOXENV : ${{ matrix.toxenv }}
37
- run : tox -- -v
48
+ sudo apt-get install fonts-ipafont-gothic ghostscript libjpeg8-dev libfreetype6-dev ccache patchelf
49
+ pip install -U docutils tox nuitka
50
+ pip install .
51
+ - name : Build native image
52
+ run : |
53
+ python3 -m nuitka --include-module=blockdiag.imagedraw --include-module=blockdiag.plugins --include-module=blockdiag.utils --include-module=blockdiag.noderenderer --onefile `which blockdiag`
54
+ - name : Smoke test
55
+ run : |
56
+ ./blockdiag.bin
57
+ - uses : actions/upload-artifact@v3
58
+ with :
59
+ name : blockdiag.bin
60
+ path : ./blockdiag.bin
0 commit comments