diff --git a/.github/workflows/conda_test.yml b/.github/workflows/conda_test.yml index 8f45eb07d..93ae04588 100644 --- a/.github/workflows/conda_test.yml +++ b/.github/workflows/conda_test.yml @@ -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