Skip to content

Commit

Permalink
update PL configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Dec 15, 2021
1 parent 401aae9 commit dfc44e5
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci_testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ name: CI compatibility

# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the main branch
push:
branches: [main]
pull_request:
branches: [main]
schedule:
Expand Down
7 changes: 4 additions & 3 deletions actions/assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,10 @@ def find_all_configs(configs_folder: str = _PATH_CONFIGS) -> List[str]:
@staticmethod
def list_runtimes(pr: Optional[int] = None, auth_token: Optional[str] = None) -> str:
"""Extract all runtime combinations in the whole repository or just for particular PR."""
configs = (
AssistantCLI.changed_configs(pr, auth_token) if isinstance(pr, int) else AssistantCLI.find_all_configs()
)
if isinstance(pr, int):
configs = AssistantCLI.changed_configs(pr, auth_token)
else:
configs = AssistantCLI.find_all_configs()
runtimes = []
for cfg in configs:
cfg_runtimes = AssistantCLI._load_config(cfg).get("runtimes", {})
Expand Down
3 changes: 3 additions & 0 deletions configs/PyTorchLightning/flash_pl-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,6 @@ testing:
- tests/examples
# additional pytest arguments
pytest_args: --strict

runtimes:
- {os: "ubuntu-20.04", python-version: "3.8"}
5 changes: 5 additions & 0 deletions configs/PyTorchLightning/flash_pl-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ testing:
- tests/examples
# additional pytest arguments
pytest_args: --strict

runtimes:
- {os: "ubuntu-20.04", python-version: "3.8"}
- {os: "macOS-10.15", python-version: "3.8"}
- {os: "windows-2019", python-version: "3.8"}
3 changes: 3 additions & 0 deletions configs/PyTorchLightning/transformers_pl-master.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ dependencies:
testing:
dirs:
- tests

runtimes:
- {os: "ubuntu-20.04", python-version: "3.8"}
4 changes: 4 additions & 0 deletions configs/PyTorchLightning/transformers_pl-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,7 @@ dependencies:
testing:
dirs:
- tests

runtimes:
- {os: "ubuntu-20.04", python-version: "3.8"}
- {os: "macOS-10.15", python-version: "3.8"}

0 comments on commit dfc44e5

Please sign in to comment.