Skip to content

Commit

Permalink
trying to fix Cosmosis SL installation in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmloureiro committed Dec 8, 2023
1 parent 942ba19 commit d5fdc49
Showing 1 changed file with 24 additions and 14 deletions.
38 changes: 24 additions & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,23 +35,29 @@ jobs:

# Our CI steps for this job.
steps:
# Check out this repository code.
- name: Check out repository code
uses: actions/checkout@v3

# Install Python.
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: cosmosis-env
channels: conda-forge
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: ${{ matrix.pyversion }}
- name: Install dependencies with conda
shell: bash -l {0}
run: mamba install -c conda-forge "cosmosis>=2.5" cosmosis-build-standard-library pytest
# # Install Python.
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}

- name: Install dependencies
run: ${{ matrix.INSTALL_DEPS }}
# - name: Install dependencies
# run: ${{ matrix.INSTALL_DEPS }}

- name: Setup cosmosis standard library
run: |
conda install -c conda-forge cosmosis-build-standard-library
cosmosis-build-standard-library -i
# - name: Setup cosmosis standard library
# run: |
# conda install -c conda-forge cosmosis-build-standard-library
# cosmosis-build-standard-library -i

# Install our package.
- name: Install legacy_blinding
Expand All @@ -64,6 +70,10 @@ jobs:
- name: Test with pytest
run: pytest --cov=blind_2pt_cosmosis --cov-report=xml ./tests

# Check out this repository code.
- name: Check out repository code
uses: actions/checkout@v3

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
Expand Down

0 comments on commit d5fdc49

Please sign in to comment.