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 b389c4f commit e702fae
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 49 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/abipy-lint.yml

This file was deleted.

27 changes: 21 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,34 @@ jobs:
build:
# prevent this action from running on forks
if: github.repository == 'abinit/abipy'
defaults:
run:
shell: bash -l {0} # enables conda/mamba env activation by reading bash profile
runs-on: ubuntu-latest
steps:
- name: Checkout
- name: Check out Abipy repo
uses: actions/checkout@v4

- name: Setup Pages
uses: actions/configure-pages@v3

- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./docs
destination: ./_site
- 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
abinit --version
abinit --build
pip install . # --editable
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: Build docs with Sphinx
run: |
cd docs
pip install -r requirements.txt
make -j
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ jobs:
conda install abinit -c conda-forge --yes
abinit --version
abinit --build
pip install . # --editable
pip install . --editable
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
Expand All @@ -62,4 +62,5 @@ jobs:
run: |
conda activate abipy
#abicheck.py --with-flow
pip install -r requirements-test.txt
pytest --splits 10 --group ${{ matrix.split }} # --durations-path tests/files/.pytest-split-durations tests
2 changes: 1 addition & 1 deletion docs/workflows/manager_examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@ Travis
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 e702fae

Please sign in to comment.