Skip to content

docs: refresh README screenshots from the 1.0 workbench #23

docs: refresh README screenshots from the 1.0 workbench

docs: refresh README screenshots from the 1.0 workbench #23

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: pytest (${{ matrix.os }}, py${{ matrix.python-version }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install formslang (dev extras)
run: python -m pip install -e ".[dev]"
- name: Run test suite
run: python -m pytest -q
lint:
name: ruff
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install formslang (dev extras)
run: python -m pip install -e ".[dev]"
- name: Run ruff
run: python -m ruff check .
# The promise docs/ci-cd.md is built on: the same session exports the
# same bytes. Export the showcase module from its XML, then again from
# the session that first run created, and require identical ZIPs.
export:
name: deterministic export (showcase module)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install formslang
run: python -m pip install -e .
- name: Export twice, compare bytes
run: |
python -m formslang export tests/fixtures/showcase/module.xml \
-o "$RUNNER_TEMP/smoke" --alias showcase --app-id 19078
cp "$RUNNER_TEMP/smoke/export/showcase.apex.zip" "$RUNNER_TEMP/first.zip"
python -m formslang export "$RUNNER_TEMP/smoke/DEMO_ALL_ELEMENTS.session.db" --json
cmp "$RUNNER_TEMP/first.zip" "$RUNNER_TEMP/smoke/export/showcase.apex.zip"
sha256sum "$RUNNER_TEMP/first.zip"