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 a753758 commit 13fa955
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Runs the Abipy test suite.
# Runs the Abipy test suite.
name: Tests

on:
Expand Down Expand Up @@ -30,7 +30,7 @@ jobs:

# pytest-split automatically distributes work load so parallel jobs finish in similar time
# update durations file with `pytest --store-durations --durations-path tests/files/.pytest-split-durations`
split: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
#split: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

runs-on: ${{ matrix.config.os }}

Expand All @@ -46,21 +46,22 @@ jobs:
with:
auto-update-conda: true

- name: Installing abinit from conda-forge and abipy with python=${{ matrix.config.python }}
run: |
- name: Installing abinit from conda-forge and abipy with python=${{ matrix.config.python }}
run: |
conda create -n abipy python=${{ matrix.config.python }} --yes
conda activate abipy
conda install abinit -c conda-forge --yes
mpirun -n 1 abinit --version
mpirun -n 1 abinit --build
pip install .
pip install .
mkdir -p $HOME/.abinit/abipy/
cp abipy/data/managers/travis_manager.yml $HOME/.abinit/abipy/manager.yml
cp abipy/data/managers/simple_scheduler.yml $HOME/.abinit/abipy/scheduler.yml
- name: pytest split ${{ matrix.split }}
- name: pytest
run: |
conda activate abipy
#abicheck.py --with-flow
pip install -r requirements-tests.txt
pytest --splits 10 --group ${{ matrix.split }} # --durations-path tests/files/.pytest-split-durations tests
cd abipy
pytest -v # --splits 10 --group ${{ matrix.split }} # --durations-path tests/files/.pytest-split-durations tests
1 change: 1 addition & 0 deletions docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ clean:

html:
./generate_rst_files.py
rm -rf ../abipy/examples/flows/flow_*
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html
@echo
@echo "Build finished. The HTML pages are in $(BUILDDIR)/html."
Expand Down
2 changes: 0 additions & 2 deletions docs/generate_rst_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
This script generates RST files to be included in the AbiPy website.
It is automatically executed by make
"""
from __future__ import unicode_literals, division, print_function, absolute_import

import sys
import os

Expand Down

0 comments on commit 13fa955

Please sign in to comment.