Improves exception throwing, typing, and docstrings. #139
Workflow file for this run
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: Python CI - lint, test, build and install | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ⚙️ Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v3 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: 📦 Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install pylint pytest build pydocstyle | |
| - name: ✅ Run lint | |
| run: | | |
| pylint $(git ls-files '*.py') | |
| - name: 🔧 Test build | |
| run: python -m build | |
| - name: 🚀 Test install from built package | |
| run: | | |
| pip install dist/*.whl | |
| - name: 🧪 Run tests | |
| run: pytest -v | |
| - name: 📚 Check docstring style (numpydoc convention) | |
| run: pydocstyle aisp -v |