-
Notifications
You must be signed in to change notification settings - Fork 14
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
37 changed files
with
627 additions
and
291 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
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
Validating CODEOWNERS rules …
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,23 +1,14 @@ | ||
# These owners will be the default owners for everything in the repo. Unless a later match takes precedence, | ||
# @global-owner1 and @global-owner2 will be requested for review when someone opens a pull request. | ||
* @borda | ||
* @borda @lantiga @akihironitta | ||
|
||
# owners | ||
/.github/CODEOWNERS @Borda | ||
# main | ||
/README.md @borda @tchaton | ||
/README.md @borda @lantiga | ||
|
||
# CI/CD | ||
/.github/workflows/ @borda | ||
/.azure/ @borda | ||
/.github/workflows/ @borda @akihironitta | ||
/.azure/ @borda @akihironitta | ||
# configs in root | ||
/*.yml @borda | ||
|
||
# Lightning-AI | ||
/configs/Lightning-AI/metrics* @borda | ||
/configs/Lightning-AI/flash* @ethanwharris | ||
/configs/Lightning-AI/lightning_transformers* @seannaren | ||
/configs/SeanNaren/* @seannaren | ||
|
||
# neptune-ai | ||
/configs/neptune-ai/* @AleksanderWWW @aniezurawski @shnela @Raalsky @pitercl @twolodzko @PatrykGala |
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 |
---|---|---|
@@ -1,16 +1,20 @@ | ||
## Before submitting | ||
## What does this PR do? | ||
|
||
- [ ] Was this discussed/approved via a GitHub issue? (no need for typos and docs improvements) | ||
- [ ] Did you create/update your **configuration file**? | ||
- [ ] Did you **set `runtimes` in config** for GitHub action integration? | ||
- [ ] Did you **add your config to CI** in Azure pipeline (only projects with 100+ GitHub stars)? | ||
- [ ] Are all integration **tests passing**? | ||
Fixes # <issue> (add a link to the created issue in your repository if any) | ||
OR link your project for clarity. | ||
|
||
## What does this PR do? \[optional\] | ||
<details> | ||
<summary>Before submitting</summary> | ||
|
||
Fixes # (issue) \[add a link to the created issue in your repository if any\] | ||
OR link your project for clarity. | ||
- [ ] Was this discussed/agreed via a GitHub issue? (no need for typos and docs improvements) | ||
- [ ] Did you create/update your **configuration file**? (in case you are adding new integration) | ||
- Did you **set `runtimes` in config** for GitHub action integration? | ||
- [ ] Are all integration **tests passing**? | ||
|
||
</details> | ||
|
||
## Did you have fun? | ||
<!-- | ||
Did you have fun? | ||
Make sure you had fun coding 🙃 | ||
--> |
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,38 @@ | ||
name: Dump job details | ||
description: save and upload job meta and status | ||
|
||
inputs: | ||
artifact-name: | ||
description: unique hash or index | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
|
||
# TODO: this seems to mix jobs from multiple jobs not only this strategy | ||
- uses: ReeganExE/github-action-job-id@v1.0 | ||
|
||
- name: Dump details | ||
run: | | ||
import os, json | ||
data = json.loads('''${{ toJSON(matrix) }}''') | ||
data.update(json.loads('''${{ toJSON(job) }}''')) | ||
gh_job_idx = ${{ strategy.job-index }} + 1 # offset is the generator job | ||
gh_job_name = f"GH_JOB_{gh_job_idx}" | ||
gh_job_vars = [(n, v) for n, v in os.environ.items() if n.startswith(gh_job_name)] | ||
assert gh_job_vars, f"missing env for: {gh_job_name}" | ||
data.update({n.replace(f"{gh_job_name}_", "").lower(): v for n, v in gh_job_vars}) | ||
with open("meta.json", "w") as fp: | ||
json.dump(data, fp) | ||
shell: python | ||
|
||
- name: Show job's meta | ||
run: cat meta.json | ||
shell: bash | ||
|
||
- name: Upload pytest test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: ${{ inputs.artifact-name }} | ||
path: meta.json |
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,66 @@ | ||
name: Project testing | ||
description: running the pytest on given project | ||
|
||
inputs: | ||
python: | ||
description: python version to run project on... | ||
required: true | ||
config: | ||
description: path to the particular config | ||
required: true | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Set up Python ${{ inputs.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ inputs.python }} | ||
|
||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
shell: bash | ||
|
||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: $COMMON-pip-$HASH_FILES | ||
restore-keys: $COMMON-pip- | ||
env: | ||
COMMON: ${{ runner.os }}-py${{ inputs.python }} | ||
HASH_FILES: ${{ hashFiles('requirements.txt') }} | ||
|
||
- name: Create script | ||
run: | | ||
pip install -q -r requirements.txt | ||
python _actions/assistant.py prepare_env --config_file=${{ inputs.config }} > prepare_env.sh | ||
cat prepare_env.sh | ||
shell: bash | ||
|
||
- name: Setting outputs | ||
id: meta | ||
run: | | ||
echo "args=$(python _actions/assistant.py specify_tests --config_file=${{ inputs.config }})" >> $GITHUB_OUTPUT | ||
echo "env=$(python _actions/assistant.py dict_env --config_file=${{ inputs.config }})" >> $GITHUB_OUTPUT | ||
shell: bash | ||
|
||
- name: Prepare environment | ||
run: bash prepare_env.sh | ||
shell: bash | ||
|
||
- name: Show dir tree | ||
if: runner.os == 'Linux' | ||
run: | | ||
sudo apt install -q -y tree | ||
tree . | ||
shell: bash | ||
|
||
- name: Testing | ||
env: ${{ fromJSON(steps.meta.outputs.env) }} | ||
working-directory: _integrations | ||
run: | | ||
coverage run -m pytest ${{ steps.meta.outputs.args }} -v \ | ||
--junitxml="junit/test-project.xml" | ||
shell: bash |
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,39 @@ | ||
# Basic dependabot.yml file with | ||
# minimum configuration for two package managers | ||
|
||
version: 2 | ||
updates: | ||
# Enable version updates for python | ||
- package-ecosystem: "pip" | ||
# Look for a `requirements` in the `root` directory | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "monthly" | ||
# Labels on pull requests for version updates only | ||
labels: ["CI/CD"] | ||
pull-request-branch-name: | ||
# Separate sections of the branch name with a hyphen | ||
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` | ||
separator: "-" | ||
# Allow up to 5 open pull requests for pip dependencies | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "Lightning-AI/teams/core-lightning" | ||
|
||
# Enable version updates for GitHub Actions | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
# Check for updates once a week | ||
schedule: | ||
interval: "monthly" | ||
# Labels on pull requests for version updates only | ||
labels: ["CI/CD"] | ||
pull-request-branch-name: | ||
# Separate sections of the branch name with a hyphen | ||
# for example, `dependabot-npm_and_yarn-next_js-acorn-6.4.1` | ||
separator: "-" | ||
# Allow up to 5 open pull requests for GitHub Actions | ||
open-pull-requests-limit: 5 | ||
reviewers: | ||
- "Lightning-AI/teams/core-lightning" |
Oops, something went wrong.