Skip to content

Create train.yml

Create train.yml #2

Workflow file for this run

name: CPU Environment Build
on: [push]
jobs:
build-linux:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Add conda to system path
run: |
echo "CONDA_BIN=$CONDA/bin" >> $GITHUB_ENV
echo "$CONDA/bin" >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env create --file environment.yml --name rtfm || conda env update --file environment.yml --name rtfm
- name: Initialize Conda and install additional pip package
run: |
echo "source $CONDA_BIN/activate rtfm" >> $GITHUB_ENV
source $CONDA_BIN/activate rtfm
pip install --no-deps git+https://github.com/mlfoundations/tableshift.git
shell: bash