diff --git a/actions/build_deploy_python_executable/action.yml b/actions/build_deploy_python_executable/action.yml index 7e54ce7..0e47e1d 100644 --- a/actions/build_deploy_python_executable/action.yml +++ b/actions/build_deploy_python_executable/action.yml @@ -11,7 +11,7 @@ inputs: deployment: required: false description: "The deployment to push to, defaults to 'prod'. Ignored for pull requests where the branch deployment is used." - default: "prod" + default: "prod" deploy: description: 'Whether to upload the code files and update the code location' required: false @@ -44,13 +44,10 @@ runs: run: echo "FLAG_DEPS_CACHE_TO=--deps-cache-to=${{ github.repository }}" >> $GITHUB_ENV shell: bash - - name: Set up Python 3.8 - uses: actions/setup-python@v5 - with: - python-version: "3.8" + - name: Install uv + uses: astral-sh/setup-uv@v3 - - if: ${{ inputs.python_version != '3.8' }} - id: custom-python-version + - id: custom-python-version name: Set up Python ${{ inputs.python_version }} for target uses: actions/setup-python@v5 with: @@ -64,6 +61,11 @@ runs: echo SOURCE_DIRECTORY=$(dirname ${{ inputs.dagster_cloud_file }}) >> $GITHUB_ENV shell: bash + - name: Ensure requirements.txt is available + shell: bash + run: > + pip compile pyproject.toml --output-file requirement.txt + - if: ${{ inputs.deploy == 'true' }} run: > cd $ACTION_REPO &&