Skip to content

Commit

Permalink
switched gitHub workflow to use miniforge
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisBarker-NOAA committed Nov 26, 2024
1 parent 4d2e2fe commit a607c66
Showing 1 changed file with 25 additions and 14 deletions.
39 changes: 25 additions & 14 deletions .github/workflows/conda_test.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,54 @@
name: Run tests with miniconda
name: Run tests with miniforge
on: [push]

# jobs:
# example-10-miniforge:
# name: Ex10 (${{ matrix.os }}, Miniforge)
# runs-on: ${{ matrix.os }}-latest
# strategy:
# matrix:
# os: ["ubuntu", "macos", "windows"]
# steps:
# - uses: actions/checkout@v4
# - uses: conda-incubator/setup-miniconda@v3
# with:
# environment-file: etc/example-environment.yml
# miniforge-version: latest


jobs:
test:
name: Miniconda ${{ matrix.os }} Py${{ matrix.pyver }}
runs-on: ${{ matrix.os }}
name: Miniforge tests ${{ matrix.os }} Py${{ matrix.pyver }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
#os: ["ubuntu-latest", "windows-latest","macos-latest"]
os: ["windows-latest","macos-latest"]
os: ["ubuntu", "windows","macos"]
# os: ["windows-latest","macos-latest"]
pyver: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: test
miniforge-version: latest
# environment-file: environment.yml
python-version: ${{ matrix.pyver }}
auto-activate-base: false
- shell: bash -l {0}
run: |
conda config --add channels conda-forge
# - shell: bash -l {0}
# run: |
# conda config --add channels conda-forge
- name: Setup environment
shell: bash -l {0}
run: |
git clone --depth 1 -b develop https://github.com/NOAA-ORR-ERD/adios_oil_database.git oil_database
conda install -y mamba
cd ./py_gnome
echo "Setting up conda environment"
mamba install -y python=${{ matrix.pyver }} \
conda install -y python=${{ matrix.pyver }} \
--file conda_requirements.txt \
--file conda_requirements_build.txt \
--file conda_requirements_test.txt \
- name: Build Our Packages
shell: bash -l {0}
run: |
pwd
ls -la
pip install ./oil_database/adios_db/
cd ./py_gnome
python -m pip install ./
- name: Run pytest
Expand Down

0 comments on commit a607c66

Please sign in to comment.