Skip to content

Commit a607c66

Browse files
switched gitHub workflow to use miniforge
1 parent 4d2e2fe commit a607c66

File tree

1 file changed

+25
-14
lines changed

1 file changed

+25
-14
lines changed

.github/workflows/conda_test.yml

Lines changed: 25 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,54 @@
1-
name: Run tests with miniconda
1+
name: Run tests with miniforge
22
on: [push]
33

4+
# jobs:
5+
# example-10-miniforge:
6+
# name: Ex10 (${{ matrix.os }}, Miniforge)
7+
# runs-on: ${{ matrix.os }}-latest
8+
# strategy:
9+
# matrix:
10+
# os: ["ubuntu", "macos", "windows"]
11+
# steps:
12+
# - uses: actions/checkout@v4
13+
# - uses: conda-incubator/setup-miniconda@v3
14+
# with:
15+
# environment-file: etc/example-environment.yml
16+
# miniforge-version: latest
17+
18+
419
jobs:
520
test:
6-
name: Miniconda ${{ matrix.os }} Py${{ matrix.pyver }}
7-
runs-on: ${{ matrix.os }}
21+
name: Miniforge tests ${{ matrix.os }} Py${{ matrix.pyver }}
22+
runs-on: ${{ matrix.os }}-latest
823
strategy:
924
matrix:
10-
#os: ["ubuntu-latest", "windows-latest","macos-latest"]
11-
os: ["windows-latest","macos-latest"]
25+
os: ["ubuntu", "windows","macos"]
26+
# os: ["windows-latest","macos-latest"]
1227
pyver: ["3.9", "3.10", "3.11", "3.12"]
1328
steps:
1429
- uses: actions/checkout@v4
1530
- uses: conda-incubator/setup-miniconda@v3
1631
with:
1732
activate-environment: test
33+
miniforge-version: latest
1834
# environment-file: environment.yml
1935
python-version: ${{ matrix.pyver }}
2036
auto-activate-base: false
21-
- shell: bash -l {0}
22-
run: |
23-
conda config --add channels conda-forge
37+
# - shell: bash -l {0}
38+
# run: |
39+
# conda config --add channels conda-forge
2440
- name: Setup environment
2541
shell: bash -l {0}
2642
run: |
27-
git clone --depth 1 -b develop https://github.com/NOAA-ORR-ERD/adios_oil_database.git oil_database
28-
conda install -y mamba
2943
cd ./py_gnome
3044
echo "Setting up conda environment"
31-
mamba install -y python=${{ matrix.pyver }} \
45+
conda install -y python=${{ matrix.pyver }} \
3246
--file conda_requirements.txt \
3347
--file conda_requirements_build.txt \
3448
--file conda_requirements_test.txt \
3549
- name: Build Our Packages
3650
shell: bash -l {0}
3751
run: |
38-
pwd
39-
ls -la
40-
pip install ./oil_database/adios_db/
4152
cd ./py_gnome
4253
python -m pip install ./
4354
- name: Run pytest

0 commit comments

Comments
 (0)