Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sidjha1 committed Nov 9, 2024
1 parent f244ab8 commit 3c02bec
Showing 1 changed file with 38 additions and 12 deletions.
50 changes: 38 additions & 12 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,40 +10,45 @@ on:
workflow_dispatch:

jobs:
setup_conda:
ruff_lint:
name: Ruff Lint
runs-on: ubuntu-latest

steps:
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
source $HOME/miniconda/bin/activate
conda init bash
ruff_lint:
name: Ruff Lint
runs-on: ubuntu-latest
needs: setup_conda

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Create and activate Conda environment
run: |
conda env create -f environment.yml || conda env update -f environment.yml
source $HOME/miniconda/bin/activate
conda activate lotus
python -m pip install ruff==0.7.2
- name: Run ruff
run: ruff check .


mypy:
name: Type Check
runs-on: ubuntu-latest
needs: setup_conda

steps:
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
source $HOME/miniconda/bin/activate
conda init bash
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -62,9 +67,16 @@ jobs:
name: OpenAI Language Model Tests
runs-on: ubuntu-latest
timeout-minutes: 5
needs: setup_conda

steps:
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
source $HOME/miniconda/bin/activate
conda init bash
- name: Checkout code
uses: actions/checkout@v3

Expand All @@ -89,9 +101,16 @@ jobs:
name: Ollama Language Model Tests
runs-on: ubuntu-latest
timeout-minutes: 10
needs: setup_conda

steps:
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
source $HOME/miniconda/bin/activate
conda init bash
- name: Checkout code
uses: actions/checkout@v3

Expand Down Expand Up @@ -128,9 +147,16 @@ jobs:
name: Retrieval Model Tests
runs-on: ubuntu-latest
timeout-minutes: 5
needs: setup_conda

steps:
- name: Install Miniconda
run: |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
bash miniconda.sh -b -p $HOME/miniconda
echo "$HOME/miniconda/bin" >> $GITHUB_PATH
source $HOME/miniconda/bin/activate
conda init bash
- name: Checkout code
uses: actions/checkout@v3

Expand Down

0 comments on commit 3c02bec

Please sign in to comment.