Skip to content

Commit b3bd748

Browse files
jesszzzzmichaelriedl
authored andcommitted
Run github CI actions on fork PRs (#3020)
1 parent 53c7369 commit b3bd748

File tree

3 files changed

+69
-62
lines changed

3 files changed

+69
-62
lines changed

.github/workflows/codeql.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
push:
55
branches: [ "main", "0.11_branch", "1.0_branch", "1.1_branch", "1.2_branch", "gh-pages" ]
66
pull_request:
7-
branches: [ "main" ]
7+
branches:
8+
- main
89
schedule:
910
- cron: "33 9 * * 0"
1011

.github/workflows/core_tests.yml

Lines changed: 64 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,88 +1,91 @@
11
name: facebookresearch/hydra/core_tests
22
on:
3-
push
3+
push:
4+
pull_request:
5+
branches:
6+
- main
47
jobs:
58
test_macos:
69
runs-on: macos-latest
710
strategy:
811
matrix:
912
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'
1417
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
2730
test_linux:
2831
runs-on: ubuntu-latest
2932
strategy:
3033
matrix:
3134
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'
3639
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
4851
test_win:
4952
runs-on: windows-latest
5053
strategy:
5154
matrix:
5255
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'
5760
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
6871
test_linux_omc_dev:
6972
runs-on: ubuntu-latest
7073
strategy:
7174
matrix:
7275
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'
7780
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

.github/workflows/deploy_website.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77
- deploy_website_hydra
8+
pull_request:
9+
branches:
10+
- main
811

912
jobs:
1013
deploy:

0 commit comments

Comments
 (0)