Skip to content

Commit

Permalink
Create train.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgard authored Jun 17, 2024
1 parent 2edb55a commit 5310186
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/train.yml
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

0 comments on commit 5310186

Please sign in to comment.