-
Notifications
You must be signed in to change notification settings - Fork 629
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
1,161 additions
and
116 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,10 +1,12 @@ | ||
from pathlib import Path | ||
|
||
from generate_workflows_lib import generate_test_workflow | ||
from generate_workflows_lib import ( | ||
generate_test_workflow, | ||
generate_lint_workflow | ||
) | ||
|
||
tox_ini_path = Path(__file__).parent.parent.parent.joinpath("tox.ini") | ||
workflows_directory_path = Path(__file__).parent | ||
|
||
generate_test_workflow( | ||
Path(__file__).parent.parent.parent.joinpath("tox.ini"), | ||
Path(__file__).parent, | ||
"ubuntu-latest" | ||
) | ||
generate_test_workflow(tox_ini_path, workflows_directory_path, "ubuntu-latest") | ||
generate_lint_workflow(tox_ini_path, workflows_directory_path) |
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
52 changes: 52 additions & 0 deletions
52
.github/workflows/generate_workflows_lib/src/generate_workflows_lib/lint.yml.j2
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,52 @@ | ||
# Do not edit this file. | ||
# This file is generated automatically by executing tox -e generate_workflows | ||
|
||
name: Lint | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'release/*' | ||
pull_request: | ||
env: | ||
CORE_REPO_SHA: 141a6a2e473ef7f0ec4915dfb71e3c0fa595283e | ||
|
||
jobs: | ||
{%- for job in jobs %} | ||
|
||
{{ job.name }}: | ||
name: {{ job.ui_name }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Contrib Repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %} | ||
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: Run tests | ||
run: tox -e {{ job.tox_env }} -- -ra | ||
{%- endfor %} | ||
|
||
lint-instrumentation-sklearn: | ||
name: instrumentation-sklearn | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Contrib Repo @ SHA - ${% raw %}{{ github.sha }}{% endraw %} | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.8" | ||
|
||
- name: Install tox | ||
run: pip install tox | ||
|
||
- name: Run tests | ||
run: tox -e lint-instrumentation-sklearn -- -ra |
Oops, something went wrong.