ci(deps): bump actions/upload-artifact from 4 to 6 #208
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: Lint and Format | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[dev] | |
| - name: Run Ruff (linting) | |
| run: | | |
| ruff check . | |
| - name: Run Ruff (formatting check) | |
| run: | | |
| ruff format --check . | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: Install prettier | |
| run: npm install -g prettier | |
| - name: Run prettier (markdown/yaml check) | |
| run: | | |
| prettier --check "**/*.{md,yml,yaml}" --ignore-path .gitignore | |
| - name: Run actionlint (GitHub Actions check) | |
| uses: raven-actions/actionlint@v2 | |
| - name: Run pre-commit hooks | |
| run: | | |
| pre-commit install | |
| pre-commit run --all-files |