Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatteo committed Jul 21, 2024
1 parent cf906e6 commit a119d21
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 11 deletions.
16 changes: 6 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,26 @@ jobs:
# PMG_MAPI_KEY: ${{ secrets.PMG_MAPI_KEY }}

steps:
- name: Check out repo
- name: Check out Abipy repo
uses: actions/checkout@v4

- name: Set up Miniconda
uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
python-version: 3.8

#- name: Set up micromamba
# uses: mamba-org/setup-micromamba@main
#- name: Create mamba environment
# run: |
# micromamba create -n abipy python=${{ matrix.config.python }} --yes

- name: Installing abinit from conda-forge
run: |
conda create -n abipy python=${{ matrix.config.python }} --yes
conda activate abipy
conda install abinit -c conda-forge
conda install abinit -c conda-forge --yes
abinit --version
abinit --build
pip install --editable
cp -r data/managers/travis_manager.yml $HOME/.abinit/abipy/manager.yml
cp -r data/managers/simple_scheduler.yml $HOME/.abinit/abipy/scheduler.yml
- name: pytest split ${{ matrix.split }}
run: |
micromamba activate abipy
conda activate abipy
pytest --splits 10 --group ${{ matrix.split }} # --durations-path tests/files/.pytest-split-durations tests
2 changes: 1 addition & 1 deletion abipy/data/managers/travis_manager.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ qadapters:
job:
mpi_runner: mpirun
pre_run:
- source activate abinit-environment
- conda activate abipy
limits:
min_cores: 1
max_cores: 2
Expand Down

0 comments on commit a119d21

Please sign in to comment.