Skip to content

Commit

Permalink
Convert facebookresearch/hydra to GitHub Actions (#2973)
Browse files Browse the repository at this point in the history
* 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
jesszzzz authored Oct 28, 2024
1 parent 4d9d6e7 commit 103a99a
Show file tree
Hide file tree
Showing 26 changed files with 279 additions and 505 deletions.
326 changes: 0 additions & 326 deletions .circleci/config.yml

This file was deleted.

22 changes: 22 additions & 0 deletions .github/actions/linux/action.yml
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
49 changes: 49 additions & 0 deletions .github/actions/macos/action.yml
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 }}"
Loading

0 comments on commit 103a99a

Please sign in to comment.