Skip to content

Commit

Permalink
Update action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tschm authored Feb 19, 2024
1 parent 8c67fce commit 8606e24
Showing 1 changed file with 39 additions and 4 deletions.
43 changes: 39 additions & 4 deletions actions/deptry/action.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 8606e24

Please sign in to comment.