Fix for options exception. There could be anything because it depends… #105
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: Python CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.11"] | |
env: | |
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Micromamba | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y curl | |
mkdir -p $HOME/micromamba | |
curl -L https://micromamba.snakepit.net/api/micromamba/linux-64/latest | tar -xvj -C $HOME/micromamba --strip-components=1 bin/micromamba | |
- name: Verify Micromamba Installation | |
run: $HOME/micromamba/micromamba --version | |
- name: Create environment | |
run: | | |
$HOME/micromamba/micromamba create --root-prefix $HOME/micromamba --name just-agents -y -c conda-forge python=${{ matrix.python-version }} | |
env: | |
MAMBA_ROOT_PREFIX: $HOME/micromamba | |
- name: Verify environment creation | |
run: | | |
$HOME/micromamba/micromamba env list | |
ls -al $HOME/micromamba/envs/just-agents | |
env: | |
MAMBA_ROOT_PREFIX: $HOME/micromamba | |
- name: Install dependencies | |
run: | | |
$HOME/micromamba/micromamba install --root-prefix $HOME/micromamba -n just-agents -f environment.yaml -y -c conda-forge | |
env: | |
MAMBA_ROOT_PREFIX: $HOME/micromamba | |
- name: Set up Micromamba environment | |
run: echo "$HOME/micromamba/bin:$HOME/micromamba/envs/just-agents/bin" >> $GITHUB_PATH | |
- name: Install just-agents package | |
run: | | |
$HOME/micromamba/micromamba run -r $HOME/micromamba -n just-agents pip install -e . | |
env: | |
MAMBA_ROOT_PREFIX: $HOME/micromamba | |
- name: Run tests | |
run: | | |
$HOME/micromamba/micromamba run -r $HOME/micromamba -n just-agents which python | |
$HOME/micromamba/micromamba run -r $HOME/micromamba -n just-agents which pytest | |
$HOME/micromamba/micromamba run -r $HOME/micromamba -n just-agents pytest | |
env: | |
MAMBA_ROOT_PREFIX: $HOME/micromamba | |
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }} | |
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} |