-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] update some linting versions #6598
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,13 +17,14 @@ concurrency: | |
|
||
env: | ||
COMPILER: 'gcc' | ||
MAKEFLAGS: '-j4' | ||
OS_NAME: 'linux' | ||
PYTHON_VERSION: '3.12' | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.task }} | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This will prevent needing to update this OS version in the future. I don't think there's any reason this job needs to be on 22.04 specifically. |
||
timeout-minutes: 60 | ||
strategy: | ||
fail-fast: false | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ def _create_data(task, n_samples=100, n_features=4): | |
elif task == "multiclass-classification": | ||
centers = 3 | ||
else: | ||
ValueError(f"Unknown classification task '{task}'") | ||
raise ValueError(f"Unknown classification task '{task}'") | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From
|
||
X, y = make_blobs(n_samples=n_samples, n_features=n_features, centers=centers, random_state=42) | ||
g = None | ||
elif task == "regression": | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While looking at this configuration, I realized that the
check-r-docs
job is installing a bunch of R packages on Linux. CRAN doesn't provide Linux binaries, so that means they're all being compiled from source.Parallelizing compilation should speed that job up, as we do with the other R jobs:
LightGBM/.github/workflows/r_package.yml
Line 26 in e7edb6c