Skip to content

Commit

Permalink
add env.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
gantian127 committed Apr 22, 2024
1 parent fd1d21b commit 38e9e61
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,23 @@ jobs:
python-version: [3.11]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
submodules: true

- uses: conda-incubator/setup-miniconda@v2
- uses: mamba-org/setup-micromamba@v1
with:
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: true
micromamba-version: latest
environment-file: environment.yml

- name: Show conda installation info
run: |
conda info
conda list
- name: Install requirements
run: |
conda install mamba
mamba install --file=requirements-build.txt --file=requirements-library.txt
mamba list
- name: Build and install package
run: |
pip install -e .
- name: Install testing dependencies
run: mamba install --file=requirements-testing.txt
pip install --no-build-isolation --editable .
- name: Test import
run: |
Expand All @@ -59,5 +50,4 @@ jobs:
run: |
pwd
ls
mamba install pytest
bmi-test pymt_dbseabed.bmi:DbSeabedData --config-file=${{github.workspace}}/notebooks/config_file.yaml --root-dir=${{github.workspace}}/notebooks -vvv
12 changes: 12 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# An env for ci testing
name: testing
channels:
- conda-forge
dependencies:
- python =3
- pip
- bmipy
- numpy
- bmi-tester >=0.5.5
- bmi_dbseabed
- pymt >=1.3

0 comments on commit 38e9e61

Please sign in to comment.