Bump actions/checkout from 6 to 7 #76
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: Check Docstrings | |
| on: [push] | |
| jobs: | |
| check_docstrings: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Checkout the repository | |
| - name: Checkout Repository | |
| uses: actions/checkout@v7 | |
| # Step 2: Set up Python | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.x' # Use the desired Python version | |
| # Step 3: Install dependencies | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pydocstyle | |
| # Step 4: Run pydocstyle to check docstrings in public methods | |
| - name: Check Docstring Style | |
| run: | | |
| pydocstyle --match='(?!test_|__init__).*\.py' . | |