Skip to content

Commit

Permalink
Inserted Mambaforge build into build_and_test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rickecon committed Oct 24, 2023
1 parent 4aaa8ec commit 74342de
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,31 @@ on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10"]

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
persist-credentials: false

- name: Setup Python
uses: actions/setup-python@v4
- name: Setup Miniconda using Python ${{ matrix.python-version }}
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-variant: Mambaforge
auto-update-conda: true
activate-environment: ogusa-dev
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: Build
shell: bash -l {0}
run: |
conda init bash
conda env create
conda activate ogusa-dev
pip install -e .
pip install pytest-cov
pip install pytest-pycodestyle
Expand Down

0 comments on commit 74342de

Please sign in to comment.