|
1 |
| -name: Run tests with miniconda |
| 1 | +name: Run tests with miniforge |
2 | 2 | on: [push]
|
3 | 3 |
|
| 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 | + |
4 | 19 | jobs:
|
5 | 20 | 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 |
8 | 23 | strategy:
|
9 | 24 | 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"] |
12 | 27 | pyver: ["3.9", "3.10", "3.11", "3.12"]
|
13 | 28 | steps:
|
14 | 29 | - uses: actions/checkout@v4
|
15 | 30 | - uses: conda-incubator/setup-miniconda@v3
|
16 | 31 | with:
|
17 | 32 | activate-environment: test
|
| 33 | + miniforge-version: latest |
18 | 34 | # environment-file: environment.yml
|
19 | 35 | python-version: ${{ matrix.pyver }}
|
20 | 36 | 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 |
24 | 40 | - name: Setup environment
|
25 | 41 | shell: bash -l {0}
|
26 | 42 | 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 |
29 | 43 | cd ./py_gnome
|
30 | 44 | echo "Setting up conda environment"
|
31 |
| - mamba install -y python=${{ matrix.pyver }} \ |
| 45 | + conda install -y python=${{ matrix.pyver }} \ |
32 | 46 | --file conda_requirements.txt \
|
33 | 47 | --file conda_requirements_build.txt \
|
34 | 48 | --file conda_requirements_test.txt \
|
35 | 49 | - name: Build Our Packages
|
36 | 50 | shell: bash -l {0}
|
37 | 51 | run: |
|
38 |
| - pwd |
39 |
| - ls -la |
40 |
| - pip install ./oil_database/adios_db/ |
41 | 52 | cd ./py_gnome
|
42 | 53 | python -m pip install ./
|
43 | 54 | - name: Run pytest
|
|
0 commit comments