-
Notifications
You must be signed in to change notification settings - Fork 651
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Separate lint into several jobs (#3902)
* Separate lint into several jobs Fixes #3893 * Remove proto-related packages from getting-started * Add global lint * Fix lint workflow * Revert "Remove proto-related packages from getting-started" This reverts commit 34d6139. * Do not run getting started tests with pypy * Add missing requirements for lint
- Loading branch information
Showing
11 changed files
with
281 additions
and
90 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
[codespell] | ||
# skipping auto generated folders | ||
skip = ./.tox,./.mypy_cache,./docs/_build,./target,*/LICENSE,./venv,.git,./opentelemetry-semantic-conventions | ||
skip = ./.tox,./.mypy_cache,./docs/_build,./target,*/LICENSE,./venv,.git,./opentelemetry-semantic-conventions,*-requirements*.txt | ||
ignore-words-list = ans,ue,ot,hist,ro |
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,54 @@ | ||
name: Lint tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'release/*' | ||
pull_request: | ||
|
||
jobs: | ||
lint-3_12: | ||
strategy: | ||
fail-fast: false # ensures the entire test matrix is run, even if one permutation fails | ||
matrix: | ||
package: | ||
- "opentelemetry-api" | ||
- "opentelemetry-proto" | ||
- "opentelemetry-sdk" | ||
- "opentelemetry-semantic-conventions" | ||
- "opentelemetry-getting-started" | ||
- "opentelemetry-opentracing-shim" | ||
- "opentelemetry-opencensus-shim" | ||
- "opentelemetry-exporter-opencensus" | ||
- "opentelemetry-exporter-otlp-proto-common" | ||
- "opentelemetry-exporter-otlp-combined" | ||
- "opentelemetry-exporter-otlp-proto-grpc" | ||
- "opentelemetry-exporter-otlp-proto-http" | ||
- "opentelemetry-exporter-otlp-proto-prometheus" | ||
- "opentelemetry-exporter-otlp-proto-zipkin-combined" | ||
- "opentelemetry-exporter-otlp-proto-zipkin-proto-http" | ||
- "opentelemetry-exporter-otlp-proto-zipkin-json" | ||
- "opentelemetry-propagator-b3" | ||
- "opentelemetry-propagator-jaeger" | ||
- "opentelemetry-test-utils" | ||
os: [ubuntu-20.04] | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- name: Checkout Core Repo @ SHA - ${{ github.sha }} | ||
uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
- name: Install tox | ||
run: pip install tox | ||
- name: Cache tox environment | ||
# Preserves .tox directory between runs for faster installs | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
.tox | ||
~/.cache/pip | ||
key: v7-build-tox-cache-${{ matrix.package }}-${{ hashFiles('tox.ini', 'gen-requirements.txt', 'dev-requirements.txt') }} | ||
- name: run tox | ||
run: tox -e lint-${{ matrix.package }} |
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
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
astroid==3.0.3 | ||
black==24.3.0 | ||
click==8.1.7 | ||
dill==0.3.8 | ||
flake8==6.1.0 | ||
isort==5.12.0 | ||
mccabe==0.7.0 | ||
mypy-extensions==1.0.0 | ||
packaging==24.0 | ||
pathspec==0.12.1 | ||
platformdirs==4.2.1 | ||
pycodestyle==2.11.1 | ||
pyflakes==3.1.0 | ||
pylint==3.0.2 | ||
tomlkit==0.12.4 |
Oops, something went wrong.