chore(deps): bump actions/upload-artifact from 4 to 7 #17
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: PR Validation | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| on: | |
| pull_request: | |
| types: [opened, synchronize, reopened] | |
| jobs: | |
| test-and-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: '3.13' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install pytest ruff black | |
| pip install -e . || pip install . | |
| - name: Format check with black | |
| run: | | |
| black --check . || echo "Formatting issues found (non-blocking)" | |
| - name: Lint with ruff | |
| run: | | |
| ruff check . || echo "Linting issues found (non-blocking)" | |
| - name: Run tests | |
| run: | | |
| pytest tests/ -v --tb=short | |
| documentation: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Check required files | |
| run: | | |
| required_files="README.md LICENSE AUTHORS.md CONTRIBUTING.md pyproject.toml" | |
| for file in $required_files; do | |
| if [ -f "$file" ]; then | |
| echo "✓ $file exists" | |
| else | |
| echo "✗ $file is missing" | |
| exit 1 | |
| fi | |
| done |