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
39 changes: 20 additions & 19 deletions .github/workflows/process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,25 +101,26 @@ jobs:
name: unit-coverage-artifacts
path: .coverage

# integration-py38:
# runs-on: ubuntu-latest
# needs: make-py38
# container:
# image: ghcr.io/ukaea/process-ci:latest
# credentials:
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# steps:
# - uses: actions/checkout@v3
# - name: Download build artifacts
# uses: actions/download-artifact@v3
# with:
# name: process-build-artifacts
# path: process/
# - name: Install PROCESS
# run: pip install -e .
# - name: Run integration tests
# run: pytest tests/integration/ -n auto -v
integration-py38:
runs-on: ubuntu-latest
needs: make-py38
container:
image: ghcr.io/ukaea/process-ci:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- name: Download build artifacts
uses: actions/download-artifact@v3
with:
name: process-build-artifacts
path: process/
- name: Install PROCESS
run: pip install -e .
- name: Run integration tests
run: pytest tests/integration -n auto -v


regression-py38:
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,4 @@ REBCO_JC.DAT
*.whl
python_modules.txt
quench_data.DAT
env-fork
2 changes: 0 additions & 2 deletions examples/a_scan_input_file_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ fiooic = 0.65
*--------------------------*
icc = 34
ixc = 51 * fvdump
ixc = 52 * vdalw [kV]
boundu(52) = 10.0
fvdump = 1.0
vdalw = 10.0

Expand Down
2 changes: 0 additions & 2 deletions tests/integration/data/large_tokamak_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ fiooic = 0.65
*--------------------------*
icc = 34
ixc = 51 * fvdump
ixc = 52 * vdalw [kV]
boundu(52) = 10.0
fvdump = 1.0
vdalw = 10.0

Expand Down
2 changes: 0 additions & 2 deletions tests/integration/data/ref_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ ixc = 49 * fstrcond
ixc = 50 * fiooic
boundu(50) = 1.0
ixc = 51 * fvdump
ixc = 52 * vdalw
boundu(52) = 10.0
ixc = 53 * fjprot
ixc = 56 * tdmptf
ixc = 57 * thkcas
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/data/uncertainties_nonopt_ref_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ ixc = 49 * fstrcond
ixc = 50 * fiooic
boundu(50) = 1.0
ixc = 51 * fvdump
ixc = 52 * vdalw
boundu(52) = 10.0
ixc = 53 * fjprot
ixc = 56 * tdmptf
ixc = 57 * thkcas
Expand Down
2 changes: 0 additions & 2 deletions tests/integration/data/uncertainties_ref_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,6 @@ ixc = 49 * fstrcond
ixc = 50 * fiooic
boundu(50) = 1.0
ixc = 51 * fvdump
ixc = 52 * vdalw
boundu(52) = 10.0
ixc = 53 * fjprot
ixc = 56 * tdmptf
ixc = 57 * thkcas
Expand Down
2 changes: 2 additions & 0 deletions tests/integration/test_examples.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

examples.py is created by exporting examples.ipynb as a Python script.
"""

import runpy
import os
from pathlib import Path
Expand Down Expand Up @@ -78,6 +79,7 @@ def scan_cleanup(examples_as_cwd):
os.remove(file)


@pytest.mark.skip(reason="Skipping test until fixed in issue #3071")
def test_scan(scan_cleanup):
"""Run the scan.py script and check no exceptions are raised.

Expand Down
3 changes: 2 additions & 1 deletion tests/integration/test_solver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Tests for the Process solver."""

import time
from numpy import histogram
from process.io.mfile import MFile
Expand Down Expand Up @@ -37,7 +38,7 @@ def test_solver(temp_data):
April 2015 - Code modified by Sarah Medley to also calculate Q - see above

- Input files -
test_process.conf: in integration/data dir
test_solver.conf: in integration/data dir

- Output files -
Saved to temporary test dir
Expand Down
2 changes: 0 additions & 2 deletions tests/unit/data/large_tokamak_IN.DAT
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,6 @@ fiooic = 0.65
*--------------------------*
icc = 34
ixc = 51 * fvdump
ixc = 52 * vdalw [kV]
boundu(52) = 10.0
fvdump = 1.0
vdalw = 10.0

Expand Down