Skip to content

fixup! test(zutil): set up test; add tests #23

fixup! test(zutil): set up test; add tests

fixup! test(zutil): set up test; add tests #23

Workflow file for this run

# Based on https://github.com/CTeX-org/ctex-kit/blob/master/.github/workflows/test.yml
name: Test suite
on:
pull_request:
types:
# added "ready_for_review"
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
[opened, ready_for_review, reopened, synchronize]
push:
schedule:
# at 12:21 UTC (20:21 CST/UTC +8) on every Friday
- cron: "21 12 * * 5"
workflow_dispatch:
jobs:
tests:
strategy:
matrix:
config: ["build", "config-old"]
option: ["", "--dev"]
name: "Tests: ${{ matrix.config }}${{ matrix.option != '' && ' (latex-dev)' || '' }}"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
with:
package-file: .github/tl_package
update-all-packages: true
- name: Run zutil tests
if: matrix.config == 'build'
run: |
cd zutil
l3build check \
--halt-on-error --show-saves \
${{ matrix.option }}
- name: Run tabularray tests
run: |
cd tabularray
l3build check \
-c${{ matrix.config }} --halt-on-error --show-saves \
${{ matrix.option }}
# imagemagick is pre-installed on Ubuntu 22.04 image
# https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#installed-apt-packages
- name: Install ppmcheckpdf dependencies
if: matrix.config == 'config-old'
run: |
sudo apt-get install imagemagick poppler-utils
- name: Check tabularray tests with ppmcheckpdf
if: matrix.config == 'config-old'
run: |
cd tabularray
texlua buildend.lua
# TODO: generate a list of files related to failed tests, then
# upload all them (.tex, .log, .pdf, .png, .md5, etc.)
- name: Upload diff files
if: failure()
uses: actions/upload-artifact@v4
with:
name: tabularray-diffs
path: |
build/**/*.diff
build/**/*.diff.png