Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
178 changes: 89 additions & 89 deletions .github/workflows/basic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,93 +9,93 @@ on:
- synchronize

jobs:
test-libE:
if: '! github.event.pull_request.draft'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
mpi-version: [mpich]
python-version: ["py311", "py312", "py313", "py314"]
comms-type: [m, l]
include:
- os: macos-latest
python-version: "py311"
mpi-version: mpich
comms-type: m
- os: macos-latest
python-version: "py311"
mpi-version: mpich
comms-type: l

test-libE:
if: "! github.event.pull_request.draft"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
mpi-version: [mpich]
python-version: ["py311", "py312", "py313", "py314"]
comms-type: [m, l]
include:
- os: macos-latest
python-version: "py311"
mpi-version: mpich
comms-type: m
- os: macos-latest
python-version: "py311"
mpi-version: mpich
comms-type: l

env:
HYDRA_LAUNCHER: "fork"
TERM: xterm-256color
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v6
with:
lfs: true

- name: Checkout lockfile
run: git lfs checkout

- uses: prefix-dev/setup-pixi@v0.9.6
with:
pixi-version: v0.68.1
frozen: true
environments: ${{ matrix.python-version }}
activate-environment: ${{ matrix.python-version }}

- name: Install minq
run: |
pixi run -e ${{ matrix.python-version }} ./install/install_minq.sh

- name: Install libEnsemble, test flake8
run: |
pip install -e .
flake8 libensemble

- name: Install mypy
run: pip install mypy

- name: Run mypy (limited scope)
run: mypy

- name: Remove various tests on newer pythons
if: matrix.python-version == 'py311' || matrix.python-version == 'py312' || matrix.python-version == 'py313' || matrix.python-version == 'py314'
run: |
rm ./libensemble/tests/functionality_tests/test_local_sine_tutorial*.py # matplotlib errors on py312

- name: Run simple tests, Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
./libensemble/tests/run_tests.py -A "-W error" -${{ matrix.comms-type }}

- name: Run simple tests, macOS
if: matrix.os == 'macos-latest'
run: |
pixi run -e ${{ matrix.python-version }} ./libensemble/tests/run_tests.py -A "-W error" -${{ matrix.comms-type }}

- name: Merge coverage
run: |
mv libensemble/tests/.cov* .

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
env:
HYDRA_LAUNCHER: "fork"
TERM: xterm-256color
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

defaults:
run:
shell: bash -l {0}

steps:
- uses: actions/checkout@v6
with:
lfs: true

- name: Checkout lockfile
run: git lfs checkout

- uses: prefix-dev/setup-pixi@v0.9.5
with:
pixi-version: v0.55.0
frozen: true
environments: ${{ matrix.python-version }}
activate-environment: ${{ matrix.python-version }}

- name: Install minq
run: |
pixi run -e ${{ matrix.python-version }} ./install/install_minq.sh

- name: Install libEnsemble, test flake8
run: |
pip install -e .
flake8 libensemble

- name: Install mypy
run: pip install mypy

- name: Run mypy (limited scope)
run: mypy

- name: Remove various tests on newer pythons
if: matrix.python-version == 'py311' || matrix.python-version == 'py312' || matrix.python-version == 'py313' || matrix.python-version == 'py314'
run: |
rm ./libensemble/tests/functionality_tests/test_local_sine_tutorial*.py # matplotlib errors on py312

- name: Run simple tests, Ubuntu
if: matrix.os == 'ubuntu-latest'
run: |
./libensemble/tests/run_tests.py -A "-W error" -${{ matrix.comms-type }}

- name: Run simple tests, macOS
if: matrix.os == 'macos-latest'
run: |
pixi run -e ${{ matrix.python-version }} ./libensemble/tests/run_tests.py -A "-W error" -${{ matrix.comms-type }}

- name: Merge coverage
run: |
mv libensemble/tests/.cov* .

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v6
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

spellcheck:
name: Spellcheck release branch
if: contains(github.base_ref, 'develop')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: crate-ci/typos@v1.46.2
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

spellcheck:
name: Spellcheck release branch
if: contains(github.base_ref, 'develop')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: crate-ci/typos@v1.46.2
Loading
Loading