diff --git a/.github/workflows/validate-main.yaml b/.github/workflows/validate-main.yaml index 2e78d32..cba4cd4 100644 --- a/.github/workflows/validate-main.yaml +++ b/.github/workflows/validate-main.yaml @@ -7,18 +7,56 @@ on: branches: [main] jobs: - validate: - runs-on: ubuntu-latest + + validate-matrix-linux: + strategy: + matrix: + os-version: [ubuntu-22.04, ubuntu-24.04] + python-version: [3.11, 3.12] + + runs-on: ${{ matrix.os-version }} + continue-on-error: true + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Lint + run: | + python3 -m venv .venv + source .venv/bin/activate + python3 -m pip install 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) + + validate-matrix-macos: + strategy: + matrix: + os-version: [macos-13, macos-14, macos-15] + python-version: [3.11, 3.12] + + runs-on: ${{ matrix.os-version }} + continue-on-error: true steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: - python-version: '3.11' + python-version: ${{ matrix.python-version }} - name: Lint run: | - python3 -m pip install --user pip --upgrade pylint + python3 -m venv .venv + source .venv/bin/activate + python3 -m pip install pip --upgrade pylint pylint qdox.py - name: Validate @@ -26,4 +64,34 @@ jobs: 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) + diff docs/index.html docs/validate.html || (echo '***ERROR***: Did you forget to run `make` before pushing your latest changes?' >/dev/stderr && false) + + validate-matrix-windows: + strategy: + matrix: + os-version: [windows-2019, windows-2022] + python-version: [3.11, 3.12] + + runs-on: ${{ matrix.os-version }} + continue-on-error: true + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Lint + run: | + python3 -m venv .venv + . .venv/scripts/activate + python3 -m pip install 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) + diff --git a/docs/index.html b/docs/index.html index 173ead6..495791c 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,7 +28,7 @@

Command Line

-Generate docs/index.html from module and README.md +Generate docs/index.html from module contents and metadata

Syntax: qdox [OPTION ...]

Options