Skip to content

Commit

Permalink
conda init
Browse files Browse the repository at this point in the history
  • Loading branch information
sambit-giri committed Aug 13, 2024
1 parent ad8669f commit fca19f7
Showing 1 changed file with 7 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,19 @@ jobs:
strategy:
matrix:
os: [macos-latest]
python-version: [3.8]
python-version: [3.8]

runs-on: ${{ matrix.os }}

steps:
- name: Check out repository code
uses: actions/checkout@v3

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -32,30 +37,14 @@ jobs:
environment-file: environment.yml
activate-environment: tools21cm

- name: Initialize Conda
run: |
source ~/miniconda/etc/profile.d/conda.sh # Initialize Conda
conda init bash # Initialize Conda shell integration
shell: bash

- name: Update Python version in Conda environment
run: |
source ~/miniconda/etc/profile.d/conda.sh
conda activate tools21cm
conda install python=3.10.6 --update-deps # Specify exact Python version
shell: bash

- name: Install additional dependencies
run: |
source ~/miniconda/etc/profile.d/conda.sh
conda init
conda activate tools21cm
conda install -y pip
pip install .
shell: bash
- name: Run tests
run: |
source ~/miniconda/etc/profile.d/conda.sh
conda activate tools21cm
pytest
shell: bash

0 comments on commit fca19f7

Please sign in to comment.