-
-
Notifications
You must be signed in to change notification settings - Fork 656
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
23 additions
and
66 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,15 @@ | ||
name: facebookresearch/hydra/core_tests | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
plugin_test: | ||
required: true | ||
test_plugins: | ||
required: true | ||
cache_key_version: | ||
required: false | ||
default: v1 | ||
env: | ||
AWS_ACCESS_KEY_ID: xxxxXT3Z | ||
AWS_DEFAULT_REGION: xxxxst-2 | ||
AWS_SECRET_ACCESS_KEY: xxxxGsxB | ||
CIRCLECI_TOKEN: xxxxed79 | ||
INSTANCE_ROLE_ARN: xxxxr-v1 | ||
push: | ||
jobs: | ||
trigger_plugin_pipelines: | ||
if: ${{ !(${{ inputs.plugin_test }}) }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: python:3.8 | ||
steps: | ||
- uses: "./.github/actions/early_return_for_forked_pull_requests" | ||
- uses: actions/[email protected] | ||
- name: Kick off Plugin tests | ||
run: |- | ||
python tools/ci/circleci_pipeline.py | ||
echo "Done kicking off plugin tests." | ||
# trigger_plugin_pipelines: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# - uses: "./.github/actions/early_return_for_forked_pull_requests" | ||
# - name: Kick off Plugin tests | ||
# uses: "./.github/actions/macos" | ||
test_macos: | ||
if: ${{ !(${{ inputs.plugin_test }}) }} | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
|
@@ -42,7 +22,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: 13.4.1 | ||
xcode-version: latest-stable | ||
- uses: "./.github/actions/macos" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
|
@@ -58,10 +38,7 @@ jobs: | |
nox -s lint test_tools test_core test_jupyter_notebooks -ts | ||
fi | ||
test_linux: | ||
if: ${{ !(${{ inputs.plugin_test }}) }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu | ||
strategy: | ||
matrix: | ||
py_version: | ||
|
@@ -86,8 +63,7 @@ jobs: | |
nox -s lint test_tools test_core test_jupyter_notebooks -ts | ||
fi | ||
test_win: | ||
if: ${{ !(${{ inputs.plugin_test }}) }} | ||
runs-on: ubuntu-latest | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
|
@@ -96,25 +72,20 @@ jobs: | |
- '3.10' | ||
- '3.11' | ||
steps: | ||
# # This item has no matching transformer | ||
# - circleci_windows_: | ||
- name: Testing Hydra | ||
run: |- | ||
$env:NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" | ||
$env:ConEmuDefaultCp=65001 | ||
$env:PYTHONIOENCODING="utf_8" | ||
set NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" | ||
set ConEmuDefaultCp=65001 | ||
set PYTHONIOENCODING="utf_8" | ||
conda activate hydra | ||
If ($env:${{ github.event.number }}) { | ||
If ("${{ github.event.number }}") { | ||
nox -s lint test_tools test_core test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
} else { | ||
nox -s lint test_tools test_core test_jupyter_notebooks -ts | ||
} | ||
exit $LASTEXITCODE | ||
test_linux_omc_dev: | ||
if: ${{ !(${{ inputs.plugin_test }}) }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu | ||
strategy: | ||
matrix: | ||
py_version: | ||
|
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,26 +1,13 @@ | ||
name: facebookresearch/hydra/plugin_tests | ||
on: | ||
workflow_dispatch: | ||
push: | ||
inputs: | ||
plugin_test: | ||
required: true | ||
test_plugins: | ||
required: true | ||
cache_key_version: | ||
required: false | ||
default: v1 | ||
env: | ||
AWS_ACCESS_KEY_ID: xxxxXT3Z | ||
AWS_DEFAULT_REGION: xxxxst-2 | ||
AWS_SECRET_ACCESS_KEY: xxxxGsxB | ||
CIRCLECI_TOKEN: xxxxed79 | ||
INSTANCE_ROLE_ARN: xxxxr-v1 | ||
default: hydra_rq_launcher,hydra_ax_sweeper,hydra_submitit_launcher,hydra_nevergrad_sweeper | ||
jobs: | ||
test_plugin_linux: | ||
if: ${{ inputs.plugin_test }} | ||
runs-on: ubuntu-latest | ||
container: | ||
image: ubuntu | ||
strategy: | ||
matrix: | ||
py_version: | ||
|
@@ -43,7 +30,6 @@ jobs: | |
pip install nox dataclasses --progress-bar off | ||
nox -s lint_plugins test_plugins test_plugins_vs_core -ts | ||
test_plugin_macos: | ||
if: ${{ inputs.plugin_test }} | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
|
@@ -58,7 +44,7 @@ jobs: | |
- uses: actions/[email protected] | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: 13.4.1 | ||
xcode-version: latest-stable | ||
- uses: "./.github/actions/macos" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
|
@@ -70,8 +56,7 @@ jobs: | |
pip install nox dataclasses --progress-bar off | ||
nox -s lint_plugins test_plugins test_plugins_vs_core -ts | ||
test_plugin_win: | ||
if: ${{ inputs.plugin_test }} | ||
runs-on: ubuntu-latest | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
|
@@ -82,8 +67,6 @@ jobs: | |
test_plugin: | ||
- "${{ inputs.test_plugins }}" | ||
steps: | ||
# # This item has no matching transformer | ||
# - circleci_windows_: | ||
- name: "${{ matrix.test_plugin }}" | ||
run: |- | ||
$env:NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" | ||
|