Skip to content

Commit 64243c7

Browse files
authored
refactor the script into modules (#41)
* move the policy reading and validation to a separate module * refactor the environment verification into a separate module * move the `Release` class into a separate module * add a function to fetch releases * remove the unused `is_preview` function * implement a draft of the cli * define `__main__` and `__init__` * typo * implement the forgotten `find_policy_versions` * remove the old script * try using `PYTHONPATH` to run the action * select validation * change the unit tests * replace the script test with multiple test modules
1 parent 85bd465 commit 64243c7

File tree

11 files changed

+463
-437
lines changed

11 files changed

+463
-437
lines changed

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ runs:
3838
ENVIRONMENT_PATHS: ${{ inputs.environment-paths }}
3939
TODAY: ${{ inputs.today }}
4040
run: |
41-
python ${{ github.action_path }}/minimum_versions.py --today="$TODAY" --policy="$POLICY_PATH" $ENVIRONMENT_PATHS
41+
PYTHONPATH=${{github.action_path}} python -m minimum_versions validate --today="$TODAY" --policy="$POLICY_PATH" $ENVIRONMENT_PATHS

0 commit comments

Comments
 (0)