-
Notifications
You must be signed in to change notification settings - Fork 8
59 lines (47 loc) · 1.7 KB
/
smoke_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Copyright (C) 2021 Sebastian Pipping <sebastian@pipping.org>
# Licensed under GNU Affero General Public License version 3.0 or later
name: Build and smoke test
# Drop permissions to minimum, for security
permissions:
contents: read
on:
pull_request:
push:
schedule:
- cron: '0 16 * * 5' # Every Friday 4pm
workflow_dispatch:
jobs:
build_and_test:
strategy:
matrix:
python-version: [3.9, 3.13]
name: Build and smoke test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |-
sudo apt-get update
sudo apt-get install --yes --no-install-recommends imagemagick inkscape
pip install \
--disable-pip-version-check \
--user \
--no-warn-script-location \
.[tests]
echo "PATH=${HOME}/.local/bin:${PATH}" >> "${GITHUB_ENV}"
- name: Smoke test
run: |-
pytest -v
./test-for-rendering-regressions.sh
cd /tmp # to not be in Git clone folder
set -x
xiangqi-board --help
xiangqi-board dummy-board.{svg,ini}
xiangqi-setup --help
xiangqi-setup --debug "${GITHUB_WORKSPACE}"/doc/demo.fen demo-fen.svg
xiangqi-setup --debug "${GITHUB_WORKSPACE}"/doc/demo.wxf demo-wxf.svg
xiangqi-setup --debug --moves 54 --annotate-last-move "${GITHUB_WORKSPACE}"/doc/demo-with-history-playok.{wxf,svg}