Skip to content

Add validation matrix for linux, macos, windows over python versions #58

Add validation matrix for linux, macos, windows over python versions

Add validation matrix for linux, macos, windows over python versions #58

name: validate-main
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
validate-matrix:
strategy:
matrix:
os-version: [ubuntu-22.04, ubuntu-24.04, windows-2022, macos-14, macos-15]
python-version: [3.11, 3.12]
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Lint
run: |
python3 -m pip install --user pip --upgrade pylint
pylint qdox.py
- name: Validate
run: |
python3 -m pip install .
mv docs/index.html docs/validate.html
python3 -m qdox --withcss
diff docs/index.html docs/validate.html || (echo '***ERROR***: Did you forget to run `make` before pushing your latest changes?' >/dev/stderr && false)