Skip to content

Commit

Permalink
Conda env -> venv
Browse files Browse the repository at this point in the history
  • Loading branch information
Terézia Slanináková committed Mar 18, 2024
1 parent 771c759 commit b8e9e44
Showing 1 changed file with 14 additions and 15 deletions.
29 changes: 14 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,26 +58,25 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'true'
- name: Set up Python 3.8
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: conda-incubator/setup-miniconda@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
python-version: 3.8

- name: Create and activate virtual environment
run: |
python -m venv env
source env/bin/activate
- name: Install dependencies
shell: bash -el {0}
run: |
conda create -n env python=3.8
conda activate env
conda install matplotlib pandas scikit-learn
pip install --upgrade pip
pip install h5py setuptools tqdm faiss-cpu pytest
python -m pip install --upgrade pip
pip install matplotlib pandas scikit-learn h5py setuptools tqdm faiss-cpu pytest
pip install torch --index-url https://download.pytorch.org/whl/cpu
- name: Check PATH
run: echo $PATH
- name: Check installed packages
run: pip list

- name: Run tests
run: pytest

0 comments on commit b8e9e44

Please sign in to comment.