ci: fix leftover #771
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 | ||
| on: | ||
| workflow_call: | ||
| pull_request: | ||
| paths: | ||
| - "python/**" | ||
| - "src/pybind/**" | ||
| - ".github/workflows/py.yaml" | ||
| push: | ||
| branches: | ||
| - master | ||
| jobs: | ||
| pythonpackage: | ||
| needs: format | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| CC: clang | ||
| CXX: clang++ | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - name: Install CPP dependencies | ||
| run: sudo apt install $(cat debian_deps.txt) | ||
| - name: Install virtual frame buffer tool | ||
| run: sudo apt install xvfb | ||
| - name: Set up Python 3.11 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| cache: "pip" | ||
| - name: Install building dependencies | ||
| run: python -m pip install -r requirements.txt | ||
| - name: Install wheel | ||
| run: python -m pip install wheel | ||
| - name: Install the package | ||
| run: python -m pip install -v --no-build-isolation '.[dev]' | ||
| - name: Check formatting | ||
| run: make pycheckformat | ||
| - name: Code linting | ||
| run: make pylint | ||
| - name: Check that stub files are up-to-date | ||
| run: make stubgen && git diff --exit-code | ||
| - name: Ensure all unittests(pytest) are passing | ||
| run: xvfb-run make pytest | ||