-
-
Notifications
You must be signed in to change notification settings - Fork 650
91 lines (91 loc) · 2.58 KB
/
plugin_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: facebookresearch/hydra/plugin_tests
on:
push:
inputs:
test_plugins:
required: true
default: hydra_rq_launcher,hydra_ax_sweeper,hydra_submitit_launcher,hydra_nevergrad_sweeper
jobs:
echo_event_number:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/linux"
with:
py_version: '3.11'
- name: "echo event number"
run: |-
echo ${{ github.event.number }}
test_plugin_linux:
if: github.event.number
runs-on: ubuntu-latest
strategy:
matrix:
py_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
test_plugin:
- "${{ inputs.test_plugins }}"
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/linux"
with:
py_version: "${{ matrix.py_version }}"
- name: "${{ matrix.test_plugin }}"
run: |-
export PATH="$HOME/miniconda3/envs/hydra/bin:$PATH"
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }}
export PLUGINS=${{ matrix.test_plugin }}
pip install nox dataclasses --progress-bar off
nox -s lint_plugins test_plugins test_plugins_vs_core -ts
test_plugin_macos:
if: github.event.number
runs-on: macos-latest
strategy:
matrix:
py_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
test_plugin:
- "${{ inputs.test_plugins }}"
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/macos"
with:
py_version: "${{ matrix.py_version }}"
- name: "${{ matrix.test_plugin }}"
run: |-
source $HOME/.bash_profile
export NOX_PYTHON_VERSIONS=${{ matrix.py_version }}
export PLUGINS=${{ matrix.test_plugin }}
conda activate hydra
pip install nox dataclasses --progress-bar off
nox -s lint_plugins test_plugins test_plugins_vs_core -ts
test_plugin_win:
if: github.event.number
runs-on: windows-latest
strategy:
matrix:
py_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
test_plugin:
- "${{ inputs.test_plugins }}"
steps:
- uses: actions/[email protected]
- uses: "./.github/actions/windows"
- name: "${{ matrix.test_plugin }}"
run: |-
$env:NOX_PYTHON_VERSIONS="${{ matrix.py_version }}"
$env:ConEmuDefaultCp=65001
$env:PYTHONIOENCODING="utf_8"
$env:PLUGINS="${{ matrix.test_plugin }}"
conda activate hydra
nox -s lint_plugins test_plugins test_plugins_vs_core -ts
exit $LASTEXITCODE