|
1 | 1 | name: facebookresearch/hydra/core_tests |
2 | 2 | on: |
3 | | - push |
| 3 | + push: |
| 4 | + pull_request: |
| 5 | + branches: |
| 6 | + - main |
4 | 7 | jobs: |
5 | 8 | test_macos: |
6 | 9 | runs-on: macos-latest |
7 | 10 | strategy: |
8 | 11 | matrix: |
9 | 12 | py_version: |
10 | | - - '3.8' |
11 | | - - '3.9' |
12 | | - - '3.10' |
13 | | - - '3.11' |
| 13 | + - '3.8' |
| 14 | + - '3.9' |
| 15 | + - '3.10' |
| 16 | + - '3.11' |
14 | 17 | steps: |
15 | | - - uses: actions/checkout@v4.1.0 |
16 | | - - uses: "./.github/actions/macos" |
17 | | - with: |
18 | | - py_version: "${{ matrix.py_version }}" |
19 | | - - name: Testing Hydra |
20 | | - run: |- |
21 | | - source $HOME/.bash_profile |
22 | | - export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
23 | | - conda activate hydra |
24 | | - pip install nox dataclasses --progress-bar off |
25 | | - nox -s lint test_tools test_core \ |
26 | | - test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
| 18 | + - uses: actions/checkout@v4.1.0 |
| 19 | + - uses: "./.github/actions/macos" |
| 20 | + with: |
| 21 | + py_version: "${{ matrix.py_version }}" |
| 22 | + - name: Testing Hydra |
| 23 | + run: |- |
| 24 | + source $HOME/.bash_profile |
| 25 | + export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
| 26 | + conda activate hydra |
| 27 | + pip install nox dataclasses --progress-bar off |
| 28 | + nox -s lint test_tools test_core \ |
| 29 | + test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
27 | 30 | test_linux: |
28 | 31 | runs-on: ubuntu-latest |
29 | 32 | strategy: |
30 | 33 | matrix: |
31 | 34 | py_version: |
32 | | - - '3.8' |
33 | | - - '3.9' |
34 | | - - '3.10' |
35 | | - - '3.11' |
| 35 | + - '3.8' |
| 36 | + - '3.9' |
| 37 | + - '3.10' |
| 38 | + - '3.11' |
36 | 39 | steps: |
37 | | - - uses: actions/checkout@v4.1.0 |
38 | | - - uses: "./.github/actions/linux" |
39 | | - with: |
40 | | - py_version: "${{ matrix.py_version }}" |
41 | | - - name: Testing Hydra |
42 | | - run: |- |
43 | | - export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" |
44 | | - export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
45 | | - pip install nox dataclasses --progress-bar off |
46 | | - nox -s lint test_tools test_core \ |
47 | | - test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
| 40 | + - uses: actions/checkout@v4.1.0 |
| 41 | + - uses: "./.github/actions/linux" |
| 42 | + with: |
| 43 | + py_version: "${{ matrix.py_version }}" |
| 44 | + - name: Testing Hydra |
| 45 | + run: |- |
| 46 | + export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" |
| 47 | + export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
| 48 | + pip install nox dataclasses --progress-bar off |
| 49 | + nox -s lint test_tools test_core \ |
| 50 | + test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
48 | 51 | test_win: |
49 | 52 | runs-on: windows-latest |
50 | 53 | strategy: |
51 | 54 | matrix: |
52 | 55 | py_version: |
53 | | - - '3.8' |
54 | | - - '3.9' |
55 | | - - '3.10' |
56 | | - - '3.11' |
| 56 | + - '3.8' |
| 57 | + - '3.9' |
| 58 | + - '3.10' |
| 59 | + - '3.11' |
57 | 60 | steps: |
58 | | - - uses: actions/checkout@v4.1.0 |
59 | | - - uses: "./.github/actions/windows" |
60 | | - - name: Testing Hydra |
61 | | - run: |- |
62 | | - conda run -n hydra pip install nox --progress-bar off |
63 | | - set NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" |
64 | | - set ConEmuDefaultCp=65001 |
65 | | - set PYTHONIOENCODING="utf_8" |
66 | | - nox -s lint test_tools test_core test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
67 | | - exit $LASTEXITCODE |
| 61 | + - uses: actions/checkout@v4.1.0 |
| 62 | + - uses: "./.github/actions/windows" |
| 63 | + - name: Testing Hydra |
| 64 | + run: |- |
| 65 | + conda run -n hydra pip install nox --progress-bar off |
| 66 | + set NOX_PYTHON_VERSIONS="${{ matrix.py_version }}" |
| 67 | + set ConEmuDefaultCp=65001 |
| 68 | + set PYTHONIOENCODING="utf_8" |
| 69 | + nox -s lint test_tools test_core test_jupyter_notebooks lint_plugins test_plugins test_plugins_vs_core -ts |
| 70 | + exit $LASTEXITCODE |
68 | 71 | test_linux_omc_dev: |
69 | 72 | runs-on: ubuntu-latest |
70 | 73 | strategy: |
71 | 74 | matrix: |
72 | 75 | py_version: |
73 | | - - '3.8' |
74 | | - - '3.9' |
75 | | - - '3.10' |
76 | | - - '3.11' |
| 76 | + - '3.8' |
| 77 | + - '3.9' |
| 78 | + - '3.10' |
| 79 | + - '3.11' |
77 | 80 | steps: |
78 | | - - uses: actions/checkout@v4.1.0 |
79 | | - - uses: "./.github/actions/linux" |
80 | | - with: |
81 | | - py_version: "${{ matrix.py_version }}" |
82 | | - - name: Testing Hydra |
83 | | - run: |- |
84 | | - export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" |
85 | | - export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
86 | | - export USE_OMEGACONF_DEV_VERSION=1 |
87 | | - pip install nox dataclasses --progress-bar off |
88 | | - nox -s test_core -ts |
| 81 | + - uses: actions/checkout@v4.1.0 |
| 82 | + - uses: "./.github/actions/linux" |
| 83 | + with: |
| 84 | + py_version: "${{ matrix.py_version }}" |
| 85 | + - name: Testing Hydra |
| 86 | + run: |- |
| 87 | + export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH" |
| 88 | + export NOX_PYTHON_VERSIONS=${{ matrix.py_version }} |
| 89 | + export USE_OMEGACONF_DEV_VERSION=1 |
| 90 | + pip install nox dataclasses --progress-bar off |
| 91 | + nox -s test_core -ts |
0 commit comments