Skip to content

ENH: Add missing C standard includes for Limited API builds #2025

ENH: Add missing C standard includes for Limited API builds

ENH: Add missing C standard includes for Limited API builds #2025

Workflow file for this run

name: Lint
on:
push:
branches:
- main
pull_request:
branches:
- main
- maintenance/**
paths-ignore:
- "**.md"
- "**.rst"
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
# To enable this job and subsequent jobs on a fork, comment out:
if: github.repository == 'numpy/numpy' && github.event_name != 'push'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
submodules: recursive
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- name: Install linter requirements
run: python -m pip install -r requirements/linter_requirements.txt
- name: Run linter on PR
env:
BASE_REF: ${{ github.base_ref }}
run: spin lint
- name: Check Python.h is first file included
run: |
python tools/check_python_h_first.py