-
-
Notifications
You must be signed in to change notification settings - Fork 662
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run github CI actions on fork PRs (#3020)
- Loading branch information
Showing
3 changed files
with
69 additions
and
62 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,88 +1,91 @@ | ||
name: facebookresearch/hydra/core_tests | ||
on: | ||
push | ||
push: | ||
pull_request: | ||
branches: | ||
- main | ||
jobs: | ||
test_macos: | ||
runs-on: macos-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/macos" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
source $HOME/.bash_profile | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
conda activate hydra | ||
pip install nox dataclasses --progress-bar off | ||
nox -s lint test_tools test_core \ | ||
test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/macos" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
source $HOME/.bash_profile | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
conda activate hydra | ||
pip install nox dataclasses --progress-bar off | ||
nox -s lint test_tools test_core \ | ||
test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
test_linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/linux" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
pip install nox dataclasses --progress-bar off | ||
nox -s lint test_tools test_core \ | ||
test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/linux" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
pip install nox dataclasses --progress-bar off | ||
nox -s lint test_tools test_core \ | ||
test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
test_win: | ||
runs-on: windows-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/windows" | ||
- name: Testing Hydra | ||
run: |- | ||
conda run -n hydra pip install nox --progress-bar off | ||
set NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" | ||
set ConEmuDefaultCp=65001 | ||
set PYTHONIOENCODING="utf_8" | ||
nox -s lint test_tools test_core test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
exit $LASTEXITCODE | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/windows" | ||
- name: Testing Hydra | ||
run: |- | ||
conda run -n hydra pip install nox --progress-bar off | ||
set NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" | ||
set ConEmuDefaultCp=65001 | ||
set PYTHONIOENCODING="utf_8" | ||
nox -s lint test_tools test_core test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts | ||
exit $LASTEXITCODE | ||
test_linux_omc_dev: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
py_version: | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
- '3.8' | ||
- '3.9' | ||
- '3.10' | ||
- '3.11' | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/linux" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
export USE_OMEGACONF_DEV_VERSION=1 | ||
pip install nox dataclasses --progress-bar off | ||
nox -s test_core -ts | ||
- uses: actions/[email protected] | ||
- uses: "./.github/actions/linux" | ||
with: | ||
py_version: "${{ matrix.py_version }}" | ||
- name: Testing Hydra | ||
run: |- | ||
export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" | ||
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} | ||
export USE_OMEGACONF_DEV_VERSION=1 | ||
pip install nox dataclasses --progress-bar off | ||
nox -s test_core -ts |
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 |
---|---|---|
|
@@ -5,6 +5,9 @@ on: | |
branches: | ||
- main | ||
- deploy_website_hydra | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
|