BLD: macosx_arm64 on GHA [wheel build] #194
Workflow file for this run
This file contains 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 | |
on: | |
push: | |
branches: | |
- maintenance/** | |
pull_request: | |
branches: | |
- main | |
- maintenance/** | |
permissions: | |
contents: read # to fetch code (actions/checkout) | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test_lint: | |
name: Lint | |
# If using act to run CI locally the github object does not exist and the usual skipping should not be enforced | |
if: "github.repository == 'scipy/scipy' || github.repository == ''" | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ['3.11'] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Python packages | |
run: | | |
python -m pip install ruff cython-lint | |
- name: Lint | |
run: | | |
set -euo pipefail | |
python tools/lint.py --diff-against origin/$GITHUB_BASE_REF | |
python tools/unicode-check.py | |
python tools/check_test_name.py |