Skip to content

Commit

Permalink
chore: update testing_env and add make command
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Feb 22, 2024
1 parent 91eb9a8 commit 4ee6945
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 53 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
activate-environment: polartoolkit
environment-file: env/test_env.yml
environment-file: env/testing_env.yml
python-version: ${{ matrix.python-version }}
channels: conda-forge,nodefaults
channel-priority: strict
Expand Down
10 changes: 10 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -81,3 +81,13 @@ RTD_env:
sed -i '$$d' env/RTD_env.yml
# add pip and install local package
sed -i '$$a\ - pip\n - pip:\n - ../.[docs]' env/RTD_env.yml

# create testing yml
testing_env:
mamba remove --name testing_env --all --yes
mamba create --name testing_env --yes --force pygmt
mamba env export --name testing_env --no-builds --from-history > env/testing_env.yml
# delete last line
sed -i '$$d' env/testing_env.yml
# add pip and install local package
sed -i '$$a\ - pip\n - pip:\n - ../.[test]' env/testing_env.yml
52 changes: 0 additions & 52 deletions env/test_env.yml

This file was deleted.

8 changes: 8 additions & 0 deletions env/testing_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: testing_env
channels:
- conda-forge
dependencies:
- pygmt
- pip
- pip:
- ../.[test]

0 comments on commit 4ee6945

Please sign in to comment.