Skip to content

Bump mkdocs-include-markdown-plugin from 7.1.5 to 7.1.8 in /requirements #579

Bump mkdocs-include-markdown-plugin from 7.1.5 to 7.1.8 in /requirements

Bump mkdocs-include-markdown-plugin from 7.1.5 to 7.1.8 in /requirements #579

Workflow file for this run

---
name: CI
on:
pull_request:
merge_group:
push:
branches: [main]
workflow_dispatch:
env:
FORCE_COLOR: "1" # Make tools pretty.
SETUPTOOLS_SCM_PRETEND_VERSION: "1.0" # avoid warnings about shallow checkout
PIP_DISABLE_PIP_VERSION_CHECK: "1"
PIP_NO_PYTHON_VERSION_WARNING: "1"
permissions: {}
jobs:
tests:
name: Nox on ${{ matrix.runs-on }} / ${{ matrix.python-version }}
runs-on: ${{ matrix.runs-on }}
strategy:
matrix:
python-version:
- "pypy3.10"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
runs-on: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
- run: uvx nox --python ${{ matrix.python-version }}
if: runner.os == 'Linux'
- run: uvx nox --python ${{ matrix.python-version }} -e tests
if: runner.os == 'Windows'
- name: Upload coverage data
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: coverage-data-${{ matrix.runs-on }}-${{ matrix.python-version }}
path: .coverage.*
include-hidden-files: true
if-no-files-found: ignore
if: runner.os == 'Linux'
coverage:
name: Combine & check coverage
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: .python-version-default
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
- name: Download coverage data
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0
with:
pattern: coverage-data-*
merge-multiple: true
- name: Combine coverage & fail if it's <100%.
run: |
uv tool install coverage
coverage combine
coverage html --skip-covered --skip-empty
# Report and write to summary.
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
# Report again and fail if under 100%.
coverage report --fail-under=100
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: html-report
path: htmlcov
if: ${{ failure() }}
install-dev:
name: Verify dev env
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
with:
python-version-file: .python-version-default
- run: python -Im pip install -e . --group dev
- run: python -c 'import doc2dash; print(doc2dash.__title__)'
- run: python -Im doc2dash --version
required-checks-pass:
name: Ensure everything required is passing for branch protection
if: always()
needs:
- tests
- coverage
- install-dev
runs-on: ubuntu-latest
steps:
- name: Decide whether the needed jobs succeeded or failed
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
with:
jobs: ${{ toJSON(needs) }}