-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from python-thread/ci/improving-ci-docs
Ci: improving ci
- Loading branch information
Showing
10 changed files
with
117 additions
and
14 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# This file is for the labeler workflow | ||
# Documentation https://github.com/marketplace/actions/labeler | ||
|
||
Documentation: | ||
- changed-files: | ||
- any-glob-to-any-file: [docs/**, .github/**, "./*.{md,mdx}"] | ||
- all-globs-to-all-files: "!.github/workflows/*" | ||
|
||
"Type: Test": | ||
- changed-files: | ||
- any-glob-to-any-file: [tests/**, ./*test*] | ||
|
||
"Type: CI": | ||
- changed-files: | ||
- any-glob-to-any-file: [.github/workflows/**] | ||
|
||
"Scope: Core": | ||
- changed-files: | ||
- any-glob-to-any-file: [src/**] | ||
all-globs-to-all-files: | ||
["!src/thread/decorators/*", "!src/thread/utils/*"] | ||
|
||
"Scope: Utils": | ||
- changed-files: | ||
- any-glob-to-any-file: ["src/thread/utils/*"] | ||
|
||
"Scope: Decorator": | ||
- changed-files: | ||
- any-glob-to-any-file: ["src/thread/decorators/*"] |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
name: Labeler | ||
|
||
on: [pull_request] | ||
|
||
# This workflow will require write permissions on pull requests | ||
# 1. Repository Settings -> Actions -> General -> Workflow permissions | ||
# Check "Read and write permissions" | ||
|
||
jobs: | ||
labeler: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/labeler@v5 | ||
with: | ||
repo-token: "${{ secrets.GITHUB_TOKEN }}" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Linting | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
PIP_DISABLE_PIP_VERSION_CHECK: 1 | ||
|
||
jobs: | ||
linting: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.x | ||
|
||
- name: Install requirements | ||
run: | | ||
set -xe | ||
python -m pip install ruff | ||
- name: Lint with ruff | ||
run: | | ||
set -xe | ||
python -m ruff --per-file-ignores="__init__.py:F401" --per-file-ignores="__init__.py:E402" . |
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
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
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
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
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
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