diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ecdd21af3..fc2c2be64 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,4 +1,4 @@ -# Runs the Abipy test suite. +# Runs the Abipy test suite. name: Tests on: @@ -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 }} @@ -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 diff --git a/docs/Makefile b/docs/Makefile index 2beeb1515..736bd5cfb 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -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." diff --git a/docs/generate_rst_files.py b/docs/generate_rst_files.py index 0b07df53f..f7aa8834a 100755 --- a/docs/generate_rst_files.py +++ b/docs/generate_rst_files.py @@ -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