From 8606e243b88b09bc81d138009b8478610fa89c97 Mon Sep 17 00:00:00 2001 From: Thomas Schmelzer Date: Mon, 19 Feb 2024 12:36:38 +0400 Subject: [PATCH] Update action.yml --- actions/deptry/action.yml | 43 +++++++++++++++++++++++++++++++++++---- 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/actions/deptry/action.yml b/actions/deptry/action.yml index 88f2760..61e38f8 100644 --- a/actions/deptry/action.yml +++ b/actions/deptry/action.yml @@ -1,5 +1,40 @@ - before_script: - - poetry run pip install deptry +# Copyright 2023 Stanford University Convex Optimization Group +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +name: Run Deptry analysis - script: - - poetry run deptry $SOURCE_DIRS +description: "Perform Deptry" + +on: + workflow_call: + inputs: + python-version: + description: 'Python version' + type: string + required: false + default: '3.10' + source-folder: + description: 'Source folder' + type: string + required: false + default: 'cvx' + +runs: + using: "composite" + steps: + - uses: cvxgrp/.github/actions/setup-environment@main + with: + python-version: ${{ inputs.python-version || '3.10' }} + + - name: Install deptry +