-
-
Notifications
You must be signed in to change notification settings - Fork 650
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Convert facebookresearch/hydra to GitHub Actions (#2973)
* Add workflow facebookresearch/hydra/core_tests * Add composite action early_return_for_forked_pull_requests * Add composite action macos * Add composite action linux * Add workflow facebookresearch/hydra/plugin_tests * Fix trigger and variables * Remove circleci config * Fix tests for windows
- Loading branch information
Showing
26 changed files
with
279 additions
and
505 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: linux | ||
inputs: | ||
py_version: | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Preparing environment - Conda | ||
run: |- | ||
curl -o Miniconda3-py38_4.8.3-Linux-x86_64.sh https://repo.anaconda.com/miniconda/Miniconda3-py38_4.8.3-Linux-x86_64.sh | ||
bash ./Miniconda3-py38_4.8.3-Linux-x86_64.sh -b | ||
shell: bash | ||
- name: Preparing environment - Other dependency | ||
run: |- | ||
sudo apt-get update | ||
sudo apt-get install -y expect fish zsh openjdk-11-jre rsync | ||
shell: bash | ||
- name: Preparing environment - Hydra | ||
run: |- | ||
~/miniconda3/bin/conda init bash | ||
~/miniconda3/bin/conda create -n hydra python=${{ inputs.py_version }} -yqc conda-forge | ||
shell: bash |
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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: macos | ||
inputs: | ||
py_version: | ||
required: false | ||
runs: | ||
using: composite | ||
steps: | ||
- name: restore_cache | ||
uses: actions/[email protected] | ||
with: | ||
key: "-${{ inputs.cache_key_version }}-macos-sys-{{ .Branch }}-${{ inputs.py_version }}" | ||
path: |- | ||
~/miniconda3 | ||
~/Library/Caches/Homebrew | ||
- uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: latest-stable | ||
- name: Preparing environment - Conda | ||
run: |- | ||
if [[ -f ~/miniconda3/LICENSE.txt ]] ; then | ||
echo "miniconda installed already." | ||
else | ||
curl -o Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh https://repo.anaconda.com/miniconda/Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh | ||
bash ./Miniconda3-py39_24.5.0-0-MacOSX-arm64.sh -b | ||
fi | ||
~/miniconda3/bin/conda init bash | ||
shell: bash | ||
- name: Preparing environment - Brew | ||
run: |- | ||
brew update | ||
brew upgrade git | ||
brew install fish | ||
brew install zsh | ||
brew cleanup | ||
shell: bash | ||
- name: Preparing environment - Hydra | ||
run: |- | ||
source $HOME/.bash_profile | ||
echo $PATH | ||
conda create -n hydra python=${{ inputs.py_version }} -yqc conda-forge | ||
conda run -n hydra pip install nox --progress-bar off | ||
shell: bash | ||
- name: save_cache | ||
uses: actions/[email protected] | ||
with: | ||
path: |- | ||
~/miniconda3 | ||
~/Library/Caches/Homebrew | ||
key: "-${{ inputs.cache_key_version }}-macos-sys-{{ .Branch }}-${{ inputs.py_version }}" |
Oops, something went wrong.