Skip to content

Commit

Permalink
Separate each setup into an individual workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
holm10 committed Jan 10, 2024
1 parent 53243de commit 4ebe722
Show file tree
Hide file tree
Showing 5 changed files with 181 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ jobs:
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests
pytest --isolate --tb=native pytests/fulltests
45 changes: 45 additions & 0 deletions .github/workflows/unittest_D-and-C.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
- name: Checkout develop branch
uses: actions/checkout@v4
with:
ref: develop
repository: LLNL/UEDGE
- name: Build UEDGE
run: |
python setup.py build
python setup.py install
- name: Return to pytests branch
uses: actions/checkout@v4
with:
ref: pytests
repository: LLNL/UEDGE
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests/unittests/D+C
45 changes: 45 additions & 0 deletions .github/workflows/unittest_D-mols.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
- name: Checkout develop branch
uses: actions/checkout@v4
with:
ref: develop
repository: LLNL/UEDGE
- name: Build UEDGE
run: |
python setup.py build
python setup.py install
- name: Return to pytests branch
uses: actions/checkout@v4
with:
ref: pytests
repository: LLNL/UEDGE
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests/unittests/D_mols
45 changes: 45 additions & 0 deletions .github/workflows/unittest_D-only-slab.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
- name: Checkout develop branch
uses: actions/checkout@v4
with:
ref: develop
repository: LLNL/UEDGE
- name: Build UEDGE
run: |
python setup.py build
python setup.py install
- name: Return to pytests branch
uses: actions/checkout@v4
with:
ref: pytests
repository: LLNL/UEDGE
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests/unittests/slab_D_only
45 changes: 45 additions & 0 deletions .github/workflows/unittest_D-only.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Tests

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
python -m pip install forthon mppl numpy h5py
python -m pip install flake8
python -m pip install pytest-isolate pytest-xdist
- name: Checkout develop branch
uses: actions/checkout@v4
with:
ref: develop
repository: LLNL/UEDGE
- name: Build UEDGE
run: |
python setup.py build
python setup.py install
- name: Return to pytests branch
uses: actions/checkout@v4
with:
ref: pytests
repository: LLNL/UEDGE
- name: Test with pytest
run: |
# Create a clean UEDGE instance for every test
pytest --isolate --tb=native pytests/unittests/D_only

0 comments on commit 4ebe722

Please sign in to comment.