File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ on :
2+ push :
3+ branches :
4+ - mlucas/ogc
5+ jobs :
6+ build_app_pack :
7+ environment : DIT
8+ runs-on : ubuntu-latest
9+
10+ permissions :
11+ contents : write
12+ packages : write
13+
14+ steps :
15+ - name : Checkout repo content
16+ uses : actions/checkout@v4
17+
18+ - name : Use OGC App Pack Generator Action
19+ uses : MAAP-Project/ogc-app-pack-generator@feature/create-action
20+ with :
21+ # Specify action inputs
22+ algorithm-configuration-path : ogc/algorithm_config.yml
23+ dockerfile-path : Dockerfile
Original file line number Diff line number Diff line change 1+ # Use miniconda as the base image with the specified version.
2+ FROM continuumio/miniconda3:23.10.0-1
3+ ENV LANG en_US.UTF-8
4+ ENV TZ US/Pacific
5+ ARG DEBIAN_FRONTEND=noninteractive
6+
7+ # Create a directory for the dps-unit-test application
8+ RUN mkdir -p /app/dps-unit-test
9+
10+ # Copy application files to the working directory
11+ COPY ./ /app/dps-unit-test
12+
13+ # Assign execute permissions to the scripts
14+ RUN chmod +x /app/dps-unit-test/run-test.sh
15+
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # Input params for OGC application package generator
2+ # The information provided in this file supports CWL and OGC best practices
3+ algorithm_description : Unit testing DPS for new cluster setups
4+ algorithm_name : dps-unit-test
5+ algorithm_version : mlucas/ogc
6+ keywords : ogc, dps, test
7+ code_repository : https://github.com/MAAP-Project/dps-unit-test.git
8+ citation : https://github.com/MAAP-Project/dps-unit-test.git
9+ author : mlucas
10+ contributor : mlucas
11+ license : https://github.com/MAAP-Project/dps-unit-test/blob/main/LICENSE
12+ release_notes : None
13+ run_command : /app/dps-unit-test/run-test.sh
14+ ram_min : 5 # mebibytes
15+ cores_min : 1
16+ outdir_max : 20 # mebibytes
17+
18+ inputs :
19+ - name : input_file
20+ doc : Input file
21+ label : input file
22+ type : string
23+
24+ outputs :
25+ - name : out
26+ type : Directory
Original file line number Diff line number Diff line change 33import os
44
55date = datetime .now ().isoformat ()
6+ print (sys .argv )
67input_file = sys .argv [1 ]
78with open (input_file , 'r' ) as fr :
89 print (f"Opening input file { input_file } success" )
You can’t perform that action at this time.
0 commit comments