Skip to content

Commit

Permalink
testing conda
Browse files Browse the repository at this point in the history
  • Loading branch information
luqmanbello committed Oct 4, 2023
1 parent 5f89c46 commit 26e940b
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions .github/workflows/api-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,35 @@ jobs:
if: github.event_name == 'pull_request'
run: git fetch origin ${{ github.event.pull_request.head.ref }} && git checkout FETCH_HEAD

- name: Setup Python 3.9
uses: actions/setup-python@v4
with:
python-version: "3.9"
architecture: x64
# - name: Setup Python 3.9
# uses: actions/setup-python@v4
# with:
# python-version: "3.9"
# architecture: x64

- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.4.0
virtualenvs-create: true
virtualenvs-in-project: true
# - name: Install Poetry
# uses: snok/install-poetry@v1
# with:
# version: 1.4.0
# virtualenvs-create: true
# virtualenvs-in-project: true

- name: Setup Conda
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
- name: Create and Activate Conda Environment
run: |
conda create -n obb-38 python=3.8 -y
echo "conda activate obb-38" >> ~/.bashrc
source ~/.bashrc
# - name: Configure Poetry
# run: poetry config virtualenvs.in-project true

- name: Install Python Dependencies
# source $(poetry env info --path)/bin/activate
run: |
pip install toml pytest uvicorn importlib-metadata requests
Expand All @@ -61,7 +72,6 @@ jobs:
# key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock', '**/dev_install.py') }}

- name: Install obb Dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
python ${{ github.workspace }}/openbb_platform/dev_install.py -e
Expand Down

0 comments on commit 26e940b

Please sign in to comment.