linkcheck #37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| # Check for dead links in the the documentation. | |
| # | |
| # Links to ignore are set in doc/conf.py | |
| # (see ``linkcheck_.*`` variables). | |
| # | |
| ### | |
| name: linkcheck | |
| on: | |
| push: | |
| branches: | |
| - main | |
| schedule: | |
| # Run every Monday at 8am UTC | |
| - cron: 0 8 * * 1 | |
| # Allows you to run this workflow manually from the Actions tab | |
| workflow_dispatch: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| # Force to use color | |
| FORCE_COLOR: true | |
| jobs: | |
| # check the links in the doc | |
| linkcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout nilearn | |
| uses: actions/checkout@v5 | |
| - name: Setup python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install packages | |
| run: pip install -r requirements.txt | |
| - name: check links | |
| run: make -C docs linkcheck |