Skip to content

Commit

Permalink
Create env-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgard authored Jun 17, 2024
1 parent 1ee65ec commit 2edb55a
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/env-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
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

0 comments on commit 2edb55a

Please sign in to comment.