Bump setuptools-scm from 9.0.1 to 9.2.1 in /examples #587
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
name: precommit, url-check and devops tests | |
defaults: | |
run: | |
shell: bash | |
env: | |
# common options for pytest | |
pytest_options: "--durations=10 -v -s -We -p no:unraisableexception" | |
on: | |
push: | |
branches: [ main ] | |
paths: ['docs/**', '**.md'] | |
pull_request: | |
branches: [ main ] | |
schedule: | |
- cron: '0 13 * * 4' | |
jobs: | |
precommit: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: 3.9 | |
- run: | | |
pip install pre-commit | |
pre-commit clean | |
pre-commit autoupdate | |
pre-commit run --all-files | |
- if: ${{ failure() }} | |
run: git diff | |
devops: | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: recursive | |
fetch-depth: 0 # https://github.com/pypa/setuptools_scm/issues/480 | |
- run: pip install -r tests/devops_tests/requirements.txt | |
- env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: pytest ${{ env.pytest_options }} -k "not test_run_notebooks" tests/devops_tests | |
url-check: | |
runs-on: ubuntu-24.04 | |
continue-on-error: true | |
steps: | |
- uses: actions/[email protected] | |
- name: URLs-checker | |
uses: urlstechie/urlchecker-action@master | |
with: | |
# A subfolder or path to navigate to in the present or cloned repository | |
# subfolder: docs | |
# A comma-separated list of file types to cover in the URL checks | |
file_types: .md,.py,.json,.ipynb,.yaml,.yml,.jinja2,.toml | |
# Choose whether to include file with no URLs in the prints. | |
print_all: false | |
# Choose whether to print a more verbose end summary with files and broken URLs. | |
verbose: true | |
# The timeout seconds to provide to requests, defaults to 5 seconds | |
timeout: 7 | |
# How many times to retry a failed request (each is logged, defaults to 1) | |
retry_count: 3 | |
# A comma separated links to exclude during URL checks | |
exclude_urls: https://www.gnu.org/licenses/gpl-3.0.html,https://open-atmos.github.io/PySDM/\2/\3.html | |
# A comma separated patterns to exclude during URL checks | |
exclude_patterns: http://purl.org,http://www.w3.org,https://doi.org/10.1175/ | |
# A comma separated list of file patterns (direct paths work as well) to exclude | |
exclude_files: docs/generate_html.py,.github/workflows/precommit.yml |