Skip to content

self_test: to ease debugging, extend error message when tests fail #24

self_test: to ease debugging, extend error message when tests fail

self_test: to ease debugging, extend error message when tests fail #24

Workflow file for this run

name: Unit Tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y tcl tcllib expect ruby ruby-dev \
build-essential python3-yaml python3-slugify \
ruby-asciidoctor-pdf ruby-rouge
- name: Run Self Tests
run: make check
- name: Run Unit Tests
run: make test
- name: Publish Test Result
run: cat ~/.local/share/9pm/logs/last/result-gh.md >> $GITHUB_STEP_SUMMARY
- name: Generate Test Report
run: make report
- name: Upload Logs as Artifacts
uses: actions/upload-artifact@v4
with:
name: 9pm-logs
path: ~/.local/share/9pm/logs
- name: Upload Test Report as Artifact
uses: actions/upload-artifact@v4
with:
name: test-report
path: ~/.local/share/9pm/logs/last/report.pdf