-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
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,33 @@ | ||
name: Build conda environment and train tiny local model | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Miniconda | ||
uses: conda-incubator/setup-miniconda@v2 | ||
with: | ||
auto-update-conda: true | ||
python-version: '3.8' | ||
activate-environment: rtfm | ||
|
||
- name: Create conda environment | ||
run: conda env create -f environment.yml | ||
|
||
- name: Update conda | ||
run: conda update -n base -c defaults conda | ||
|
||
- name: Install additional package | ||
run: conda run -n rtfm pip install --no-deps git+https://github.com/mlfoundations/tableshift.git | ||
|
||
- name: Run shell script | ||
run: | | ||
source $(conda info --base)/etc/profile.d/conda.sh | ||
conda activate rtfm | ||
./scripts/tests/train_tiny_local_test.sh |