Merge pull request #32 from QCFD-Lab/dev #60
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: Format using Ruff | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| ruff: | |
| if: github.repository_owner == 'QCFD-Lab' | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: 3.12.5 | |
| architecture: x64 | |
| - name: Cache pip packages | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cache/pip | |
| ${{ env.pythonLocation }} | |
| key: pip-format-3.12.5-${{ hashFiles('pyproject.toml') }} | |
| restore-keys: | | |
| pip-format-3.12.5- | |
| - name: Install Ruff | |
| run: | | |
| pip install --upgrade pip | |
| pip install -e .[cpu,dev] | |
| pip install "ruff==0.9.2" | |
| - name: Run Ruff | |
| run: ruff check qlbm |