Skip to content

Commit

Permalink
CI: Test direct installation via conda.
Browse files Browse the repository at this point in the history
Instead of just testing whether we can install into the environment
defined by environment.yaml.
  • Loading branch information
csadorf committed Aug 3, 2021
1 parent 4f55a25 commit 9e220e4
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test-install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,17 @@ jobs:
- run: python --version
- run: which python

- name: Create conda environment
- name: Test direct installation
run: |
conda env create -f environment.yml -n test-environment
source activate test-environment
python -m pip install --no-deps -e .
conda create -n test-install aiida-core
source activate test-install
python -c "import aiida"
- name: Test importing aiida
- name: Test conda environment
run: |
conda env create -f environment.yml -n test-environment
source activate test-environment
python -m pip install --no-deps -e .
python -c "import aiida"
tests:
Expand Down

0 comments on commit 9e220e4

Please sign in to comment.