Skip to content

Commit

Permalink
Reproducer.
Browse files Browse the repository at this point in the history
  • Loading branch information
fdmalone committed Dec 9, 2023
1 parent 8ed0fb4 commit 30e887f
Showing 1 changed file with 95 additions and 95 deletions.
190 changes: 95 additions & 95 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@ name: CI
on: [pull_request]

jobs:
health:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev/dev.txt
- name: pylint
run: |
python dev/run_tests.py --pylint
- name: format
run: |
python dev/run_tests.py --black
- name: flynt
run: |
python dev/run_tests.py --flynt
# health:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Setup MPI
# uses: mpi4py/setup-mpi@v1
# with:
# mpi: openmpi
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install -r dev/dev.txt
# - name: pylint
# run: |
# python dev/run_tests.py --pylint
# - name: format
# run: |
# python dev/run_tests.py --black
# - name: flynt
# run: |
# python dev/run_tests.py --flynt
pytest-mpi4py:
strategy:
fail-fast: false
Expand Down Expand Up @@ -62,77 +62,77 @@ jobs:
run: |
pip install pytest
pip install pytest-xdist
python -m pytest -n=auto
#python -m pytest -n=auto
- name: mpi test
timeout-minutes: 10
run: |
mpiexec -n 2 python -m pytest ipie/legacy/walkers/tests/test_handler.py
# mpiexec -n 2 python -m pytest ipie/legacy/walkers/tests/test_handler.py
mpiexec -n 6 python -m pytest ipie/estimators/tests/test_generic_chunked.py
mpiexec -n 6 python -m pytest ipie/propagation/tests/test_generic_chunked.py
pytest-no_mpi:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest-xdist
- name: No mpi4py
run: |
python -c "from ipie.config import MPI; assert \"FakeComm\" in str(MPI.COMM_WORLD)"
python -m pytest -n=auto
integration:
strategy:
fail-fast: false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev/dev.txt
- name: Install package
run: |
export BUILD_LEGACY_IPIE=1; python -m pip install -e .
- name: Test Integration
timeout-minutes: 10
run: |
mpirun -np 4 python -u ipie/qmc/tests/test_mpi_integration.py
examples:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Setup MPI
uses: mpi4py/setup-mpi@v1
with:
mpi: openmpi
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r dev/dev.txt
pip install pyblock
# https://github.com/JoonhoLee-Group/ipie/issues/278
pip install "pyscf<=2.3.0"
- name: Install package
run: |
python -m pip install -e .
- name: Test Examples
timeout-minutes: 10
run: |
python dev/run_tests.py --examples
# mpiexec -n 6 python -m pytest ipie/propagation/tests/test_generic_chunked.py
# pytest-no_mpi:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install pytest-xdist
# - name: No mpi4py
# run: |
# python -c "from ipie.config import MPI; assert \"FakeComm\" in str(MPI.COMM_WORLD)"
# python -m pytest -n=auto
# integration:
# strategy:
# fail-fast: false
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Setup MPI
# uses: mpi4py/setup-mpi@v1
# with:
# mpi: openmpi
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install -r dev/dev.txt
# - name: Install package
# run: |
# export BUILD_LEGACY_IPIE=1; python -m pip install -e .
# - name: Test Integration
# timeout-minutes: 10
# run: |
# mpirun -np 4 python -u ipie/qmc/tests/test_mpi_integration.py
# examples:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-python@v4
# with:
# python-version: "3.10"
# - name: Setup MPI
# uses: mpi4py/setup-mpi@v1
# with:
# mpi: openmpi
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install -r dev/dev.txt
# pip install pyblock
# # https://github.com/JoonhoLee-Group/ipie/issues/278
# pip install "pyscf<=2.3.0"
# - name: Install package
# run: |
# python -m pip install -e .
# - name: Test Examples
# timeout-minutes: 10
# run: |
# python dev/run_tests.py --examples

0 comments on commit 30e887f

Please sign in to comment.