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
11 changes: 10 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,16 @@
{
"name": "Python 3",
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
"image": "mcr.microsoft.com/devcontainers/python:0-3.11",
"image": "mcr.microsoft.com/devcontainers/python:3.14-trixie",

"containerEnv": {
"HTTP_PROXY": "${localEnv:HTTP_PROXY}",
"HTTPS_PROXY": "${localEnv:HTTPS_PROXY}",
"NO_PROXY": "${localEnv:NO_PROXY}",
"http_proxy": "${localEnv:HTTP_PROXY}",
"https_proxy": "${localEnv:HTTPS_PROXY}",
"no_proxy": "${localEnv:NO_PROXY}"
},

// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
Expand Down
24 changes: 20 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ name: Python test
on: push

jobs:
test:
unit-test:
name: Run unit tests
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Set up Python 3.12.8
name: Set up Python 3.14.0
uses: actions/setup-python@v4
with:
python-version: 3.12.8
python-version: 3.14.0
-
name: Install dependencies
run: pip install -r requirements.txt -r requirements-test.txt
Expand All @@ -26,4 +26,20 @@ jobs:
job-summary: true
custom-arguments: -q
click-to-expand: true
report-title: 'PRONTO unit testing'
report-title: 'PRONTO unit testing'
full-test:
name: Run full test
runs-on: ubuntu-latest
steps:
-
name: Check out the repo
uses: actions/checkout@v4
-
name: Build docker image
run: docker build -t pronto:full-test .
-
name: Run full test OUS
run: docker run --rm -v $(pwd)/test_data/ous:/data/sample_data/analysis_results -v $(pwd)/test_data/ous/251114_A02134_0115_BHCJCKDRX7_TSO_500_LocalApp_postprocessing_results/InPreD_PRONTO_metadata.txt:/pronto/In/InPreD_PRONTO_metadata.txt pronto:full-test /pronto/Script/PRONTO.py
-
name: Run full test HUS
run: docker run --rm -v $(pwd)/test_data/hus:/data/sample_data/analysis_results -v $(pwd)/test_data/InPreD_PRONTO_metadata.txt:/pronto/In/InPreD_PRONTO_metadata.txt pronto:full-test /pronto/Script/PRONTO.py