Create train.yml #2
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
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 |