Skip to content

ci: fix leftover

ci: fix leftover #771

Workflow file for this run

name: Python

Check failure on line 1 in .github/workflows/py.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/py.yaml

Invalid workflow file

(Line: 14, Col: 3): The workflow must contain at least one job with no dependencies.
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