mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-04 05:50:42 +00:00
731564b656
* ci: test using no permissions by default for most CI jobs * Also require production approval for a release upload * remove build_release individual 'job' * tweak some stuff * driveby bump on setup-python to 6.2.0 to fix node20 warnings * remove bsd vm check name
50 lines
1.4 KiB
YAML
50 lines
1.4 KiB
YAML
# Small CI workflow to test if mkdocs documentation can be successfully built.
|
|
|
|
name: test docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
pull_request:
|
|
|
|
permissions: {}
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'ClementTsang/bottom' }}
|
|
|
|
jobs:
|
|
pre-job:
|
|
runs-on: ubuntu-24.04
|
|
outputs:
|
|
should_skip: ${{ steps.skip_check.outputs.should_skip }}
|
|
steps:
|
|
- id: skip_check
|
|
uses: ClementTsang/skip-duplicate-actions@41b0a75f656d455934ffa6a46b779d8d996ac47c
|
|
with:
|
|
skip_after_successful_duplicate: "true"
|
|
paths: '["docs/**", ".github/workflows/docs.yml", ".github/workflows/test_docs.yml"]'
|
|
do_not_skip: '["workflow_dispatch"]'
|
|
|
|
test-build-documentation:
|
|
name: Test building docs
|
|
needs: pre-job
|
|
if: ${{ needs.pre-job.outputs.should_skip != 'true' }}
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
|
|
with:
|
|
python-version: 3.12
|
|
|
|
- name: Install Python dependencies
|
|
run: pip install -r docs/requirements.txt
|
|
|
|
- name: Build docs with mkdocs
|
|
run: |
|
|
cd docs
|
|
mkdocs build
|