Skip to content

Commit 0fb652e

Browse files
targosaduh95
authored andcommittedNov 2, 2024
tools: update gyp-next to v0.16.1
PR-URL: #50380 Reviewed-By: Jiawen Geng <technicalcute@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
1 parent fa72b2c commit 0fb652e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+5244
-312
lines changed
 

‎tools/gyp/.flake8

-4
This file was deleted.

‎tools/gyp/.github/workflows/Python_tests.yml

+17-10
Original file line numberDiff line numberDiff line change
@@ -2,29 +2,36 @@
22
# TODO: Enable pytest --doctest-modules
33

44
name: Python_tests
5-
on: [push, pull_request]
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
workflow_dispatch:
611
jobs:
712
Python_tests:
813
runs-on: ${{ matrix.os }}
914
strategy:
1015
fail-fast: false
11-
max-parallel: 8
16+
max-parallel: 5
1217
matrix:
1318
os: [macos-latest, ubuntu-latest] # , windows-latest]
14-
python-version: ["3.7", "3.8", "3.9", "3.10"]
19+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
1520
steps:
16-
- uses: actions/checkout@v3
21+
- uses: actions/checkout@v4
1722
- name: Set up Python ${{ matrix.python-version }}
18-
uses: actions/setup-python@v3
23+
uses: actions/setup-python@v4
1924
with:
2025
python-version: ${{ matrix.python-version }}
26+
allow-prereleases: true
2127
- name: Install dependencies
2228
run: |
23-
python -m pip install --upgrade pip
24-
pip install -r requirements_dev.txt
25-
- name: Lint with flake8
26-
run: flake8 . --ignore=E203,W503 --max-complexity=101 --max-line-length=88 --show-source --statistics
27-
- name: Test with pytest
29+
python -m pip install --upgrade pip setuptools
30+
pip install --editable ".[dev]"
31+
- run: ./gyp -V && ./gyp --version && gyp -V && gyp --version
32+
- name: Lint with ruff # See pyproject.toml for settings
33+
run: ruff --output-format=github .
34+
- name: Test with pytest # See pyproject.toml for settings
2835
run: pytest
2936
# - name: Run doctests with pytest
3037
# run: pytest --doctest-modules

0 commit comments

Comments
 (0)
Please sign in to comment.